diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-25 00:33:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-25 00:33:22 +0300 |
commit | 2a50760873858d4fafea55718cbb9a5f5844f836 (patch) | |
tree | 109a00b3d2147f908f3f49f3446bae6be506f368 /source/blender/editors/interface/view2d.c | |
parent | d631252109bea2e69dae67686b1b8611b52a670d (diff) |
Correct fix for T47047
Caused new 2d views to initialize w/o scrollbars
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 2f11d41738a..fd991660110 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -212,11 +212,6 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) do_init = (v2d->flag & V2D_IS_INITIALISED) == 0; - /* initialize without scroll bars (interferes with zoom level see: T47047) */ - if (do_init) { - v2d->scroll |= V2D_SCROLL_VERTICAL_FULLR | V2D_SCROLL_HORIZONTAL_FULLR; - } - /* see eView2D_CommonViewTypes in UI_view2d.h for available view presets */ switch (type) { /* 'standard view' - optimum setup for 'standard' view behavior, @@ -322,8 +317,12 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) v2d->keeptot = V2D_KEEPTOT_BOUNDS; /* note, scroll is being flipped in ED_region_panels() drawing */ - v2d->scroll |= V2D_SCROLL_HORIZONTAL_HIDE; - v2d->scroll |= V2D_SCROLL_VERTICAL_HIDE; + v2d->scroll |= (V2D_SCROLL_HORIZONTAL_HIDE | V2D_SCROLL_VERTICAL_HIDE); + + /* initialize without scroll bars (interferes with zoom level see: T47047) */ + if (do_init) { + v2d->scroll |= (V2D_SCROLL_VERTICAL_FULLR | V2D_SCROLL_HORIZONTAL_FULLR); + } if (do_init) { float panelzoom = (style) ? style->panelzoom : 1.0f; |