Fix Rect::rectContainingRects() returning rectangle with incorrect height