Concise max, min logic for stackedExtent
Moving _paint method around
Moving _isVertical around