From 3b83ff755d641a89d1f9e2755b7e99bbd96a12ce Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 7 Feb 2010 01:11:02 +0000 Subject: [PATCH] Fix jumping panels when opening a new properties area or area containing a region with panels (e.g. file browser). --- source/blender/editors/interface/view2d.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 4a648e6051b..229cf187035 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -275,7 +275,9 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) v2d->keeptot= V2D_KEEPTOT_BOUNDS; v2d->scroll |= (V2D_SCROLL_RIGHT|V2D_SCROLL_BOTTOM); - + v2d->scroll |= V2D_SCROLL_HORIZONTAL_HIDE; + v2d->scroll &= ~V2D_SCROLL_VERTICAL_HIDE; + v2d->tot.xmin= 0.0f; v2d->tot.xmax= winx;