[Bf-blender-cvs] [10804043a5a] temp-spreadsheet-editor: fixes

Jacques Lucke noreply at git.blender.org
Wed Feb 24 18:13:01 CET 2021


Commit: 10804043a5a4b2797e54f6c075d2c29d01e4368f
Author: Jacques Lucke
Date:   Wed Feb 24 18:12:48 2021 +0100
Branches: temp-spreadsheet-editor
https://developer.blender.org/rB10804043a5a4b2797e54f6c075d2c29d01e4368f

fixes

===================================================================

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 922d114e567..0dea904295e 100644
--- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
+++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
@@ -352,11 +352,8 @@ static void draw_column_headers(const bContext *C,
     const int right_x = left_x + column_layout.width;
 
     rcti rect;
-    BLI_rcti_init(&rect,
-                  left_x,
-                  right_x,
-                  region->winy - spreadsheet_layout.index_column_width,
-                  region->winy);
+    BLI_rcti_init(
+        &rect, left_x, right_x, region->winy - spreadsheet_layout.title_row_height, region->winy);
     if (column_layout.header_drawer != nullptr) {
       column_layout.header_drawer->draw_header(column_headers_block, rect);
     }
@@ -476,7 +473,7 @@ static void spreadsheet_main_region_draw(const bContext *C, ARegion *region)
   SpreadsheetLayout spreadsheet_layout;
   spreadsheet_layout.index_column_width = 2 * UI_UNIT_X;
   spreadsheet_layout.row_height = UI_UNIT_Y;
-  spreadsheet_layout.title_row_height = 1.5 * UI_UNIT_Y;
+  spreadsheet_layout.title_row_height = 1.25 * UI_UNIT_Y;
   spreadsheet_layout.columns.append({100, &my_header_drawer, &my_cell_drawer});
   spreadsheet_layout.columns.append({200, &my_header_drawer, &my_cell_drawer});
   spreadsheet_layout.columns.append({100, &my_header_drawer, &my_cell_drawer});



More information about the Bf-blender-cvs mailing list