maxY + minY functionality