[gnumeric] GUI: Increase default column width.



commit d667f7740fc5042b2d71850c33b33375333c3ef0
Author: Morten Welinder <terra gnome org>
Date:   Wed Mar 16 17:27:13 2022 -0400

    GUI: Increase default column width.
    
    When the font size causes us to increase the row height, also increase
    the column width.

 ChangeLog   | 5 +++++
 NEWS        | 1 +
 src/sheet.c | 1 +
 3 files changed, 7 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 4031765de..f92e44aab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-03-16  Morten Welinder  <terra gnome org>
+
+       * src/sheet.c (gnm_sheet_constructed): When rescaling row height
+       due to font size, also increase column width.
+
 2022-03-06  Morten Welinder  <terra gnome org>
 
        * src/xml-sax-write.c (xml_write_colrow_info): Fix last fix.  I
diff --git a/NEWS b/NEWS
index 7a65890c4..d0311b676 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ Morten:
        * Fix old problem saving column widths.  [#619]
        * Set default number of sheets to 1.
        * Fix edge error case for SMALL and LARGE.  [#620]
+       * Increase the default column width a bit.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.51
diff --git a/src/sheet.c b/src/sheet.c
index 0a50fb414..a246526be 100644
--- a/src/sheet.c
+++ b/src/sheet.c
@@ -781,6 +781,7 @@ gnm_sheet_constructed (GObject *obj)
        ht += GNM_ROW_MARGIN + GNM_ROW_MARGIN + 1;
        if (ht > sheet_row_get_default_size_pixels (sheet)) {
                sheet_row_set_default_size_pixels (sheet, ht);
+               sheet_col_set_default_size_pixels (sheet, ht * 9 / 2);
        }
 
        sheet_scale_changed (sheet, TRUE, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]