Fix jumping panels when opening a new properties area or area containing

a region with panels (e.g. file browser).
This commit is contained in:
Brecht Van Lommel 2010-02-07 01:11:02 +00:00
parent 36f57beca2
commit 3b83ff755d

@ -275,6 +275,8 @@ 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;