Fix user preferences window contents being shifted to the left.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Feb 2010 17:07:06 +0000 (17:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Feb 2010 17:07:06 +0000 (17:07 +0000)
source/blender/editors/interface/view2d.c

index f13d61f8102dc8d40b65ca04a753a0ee162055e2..2bdf1ea4c88e3290b0467603aa1d30df33127ca3 100644 (file)
@@ -289,8 +289,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
                                v2d->cur.xmax= (winx - V2D_SCROLL_WIDTH)*panelzoom;
                                
                                v2d->cur.ymax= 0.0f;
-                               /* bad workaround for keeping zoom level with scrollers */
-                               v2d->cur.ymin= (-winy + V2D_SCROLL_HEIGHT)*panelzoom;
+                               v2d->cur.ymin= (-winy)*panelzoom;
                        }
                                break;