Skip to content

Commit

Permalink
Setting a sheet column width to 1 when resizing by dragging
Browse files Browse the repository at this point in the history
Column widths of 0 are not saved by the table and so revert back to
calculated widths when reloaded. This change sets the column width to
1 when the right border is dragged to the left border to hide columns.
By doing this, a visual indication of a hidden column is seen as the
column border is now wider by 1px.
  • Loading branch information
Bob-IT committed Jun 26, 2020
1 parent 98cfad8 commit 2c62ae4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gnucash/register/register-gnome/gnucash-header.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,11 @@ gnc_header_event (GtkWidget *widget, GdkEvent *event)
if (event->button.button != 1)
break;


if (header->in_resize)
{
if (header->resize_col_width == 0)
header->resize_col_width = 1;

gnc_header_resize_column
(header,
header->resize_col,
Expand Down

0 comments on commit 2c62ae4

Please sign in to comment.