Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-07-14 14:59:21 +0400
committerJoshua Leung <aligorith@gmail.com>2009-07-14 14:59:21 +0400
commit047c9e0e4e02e61019f7e0e141933cc0d3416633 (patch)
treee6eddfc788ad651871a4ac755c6c09f7b426628f /source/blender/editors/interface/view2d.c
parent0bfc98706ef93f90bd74b195b98c36c7dcea94dd (diff)
2.5 - Scrollbars are now shown when a list of panels can't fit in view
Notes: - These may be taking up a bit too much room in some situations. Perhaps an option to turn these on/off is needed? - I've added a quick hack in area.c -> ED_region_panels_init() to set the flags to make scrollbars show up in regions whose View2D data has already been initialised. This is primarily aimed at the Buttons Window in the 2.5 defaults file, which seems to have been saved in 2.5 or so - The expand icons on either end of the scrollers don't really seem to be necessary? (or not working yet)
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r--source/blender/editors/interface/view2d.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c
index 6df7b1c8e28..2f92901c8f5 100644
--- a/source/blender/editors/interface/view2d.c
+++ b/source/blender/editors/interface/view2d.c
@@ -262,6 +262,8 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
v2d->align= (V2D_ALIGN_NO_NEG_X|V2D_ALIGN_NO_POS_Y);
v2d->keeptot= V2D_KEEPTOT_BOUNDS;
+ v2d->scroll |= (V2D_SCROLL_RIGHT|V2D_SCROLL_BOTTOM);
+
v2d->tot.xmin= 0.0f;
v2d->tot.xmax= winx;
@@ -270,10 +272,10 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
v2d->cur.xmin= 0.0f;
v2d->cur.xmax= winx*style->panelzoom;
-
+
v2d->cur.ymax= 0.0f;
v2d->cur.ymin= -winy*style->panelzoom;
-
+
v2d->cur.ymax= 0.0f;
v2d->cur.ymin= -winy*style->panelzoom;
}