[Bf-blender-cvs] [1868880e7a2] temp-spreadsheet-editor: enable scrollbars
Jacques Lucke
noreply at git.blender.org
Tue Feb 23 17:08:34 CET 2021
Commit: 1868880e7a2f2410fdbd63cd970fbb1f2c0f5358
Author: Jacques Lucke
Date: Tue Feb 23 17:07:12 2021 +0100
Branches: temp-spreadsheet-editor
https://developer.blender.org/rB1868880e7a2f2410fdbd63cd970fbb1f2c0f5358
enable scrollbars
===================================================================
M source/blender/editors/space_spreadsheet/space_spreadsheet.cc
===================================================================
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
index 9f8169949b5..a905b0581ee 100644
--- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
+++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
@@ -104,8 +104,7 @@ static void spreadsheet_keymap(wmKeyConfig *UNUSED(keyconf))
static void spreadsheet_main_region_init(wmWindowManager *UNUSED(wm), ARegion *region)
{
- region->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM | V2D_SCROLL_HORIZONTAL_HIDE |
- V2D_SCROLL_VERTICAL_HIDE;
+ region->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM;
region->v2d.align = V2D_ALIGN_NO_NEG_X | V2D_ALIGN_NO_POS_Y;
region->v2d.keepzoom = V2D_LOCKZOOM_X | V2D_LOCKZOOM_Y | V2D_LIMITZOOM | V2D_KEEPASPECT;
region->v2d.keeptot = V2D_KEEPTOT_STRICT;
@@ -279,6 +278,9 @@ static void spreadsheet_main_region_draw(const bContext *C, ARegion *region)
UI_block_end(C, block);
UI_block_draw(C, block);
+
+ UI_view2d_view_restore(C);
+ UI_view2d_scrollers_draw(v2d, NULL);
}
static void spreadsheet_main_region_listener(const wmRegionListenerParams *params)
More information about the Bf-blender-cvs
mailing list