svn merge ^/trunk/blender -r50091:50107
[blender.git] / source / blender / editors / screen / screen_ops.c
index 9bb5fb34140f29296a229646f6900a2ad2f43cb9..f2f37583ce940f7ee4fa730d92057c85d7b48010 100644 (file)
@@ -1620,7 +1620,7 @@ static int area_max_regionsize(ScrArea *sa, ARegion *scalear, AZEdge edge)
                dist = BLI_RCT_SIZE_X(&sa->totrct);
        }
        else {  /* AE_BOTTOM_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT */
-               dist = sa->totrct.ymax - sa->totrct.ymin;
+               dist = BLI_RCT_SIZE_Y(&sa->totrct);
        }
        
        /* subtractwidth of regions on opposite side