From 1dfeac246dba3c69068e1ece726eadceebbd0f4d Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Mon, 24 Jul 2023 23:49:32 +0200 Subject: [PATCH] UI: Only Show Spreadsheet Scroll Bars When Necessary Hides Spreadsheet editor scroll bars when not needed. Pull Request: https://projects.blender.org/blender/blender/pulls/110403 --- source/blender/editors/space_spreadsheet/space_spreadsheet.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc index 9805dcfa2f1..627d228cfe0 100644 --- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc +++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc @@ -163,7 +163,8 @@ static void spreadsheet_id_remap(ScrArea * /*area*/, SpaceLink *slink, const IDR static void spreadsheet_main_region_init(wmWindowManager *wm, ARegion *region) { - region->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM; + region->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_BOTTOM | V2D_SCROLL_VERTICAL_HIDE | + V2D_SCROLL_HORIZONTAL_HIDE; 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;