diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-03 08:48:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-03 08:48:14 +0400 |
commit | f571d1d238372b668eab88bb491eb48bd1327554 (patch) | |
tree | 7f195f5f838e4d16123ce5ef9fc5500cf1f0e6c0 /source/blender/editors/space_file/space_file.c | |
parent | d1c99081ea57a9ef55d51dc08ddb700da5f6bbf8 (diff) |
fix [#27578] Fileselector UI area does not scale with UI (partially hides buttons)
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 18270bfaa26..f4adc471f70 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -520,9 +520,14 @@ static void file_ui_area_draw(const bContext *C, ARegion *ar) glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT); + /* scrolling here is just annoying, disable it */ + ar->v2d.cur.ymax= ar->v2d.cur.ymax - ar->v2d.cur.ymin; + ar->v2d.cur.ymin= 0; + /* set view2d view matrix for scrolling (without scrollers) */ UI_view2d_view_ortho(&ar->v2d); + file_draw_buttons(C, ar); UI_view2d_view_restore(C); |