[GNC] Invoice date field starts too narrow

Geert Janssens geert.gnucash at kobaltwit.be
Sun Dec 15 07:42:32 EST 2019


Op zondag 15 december 2019 00:14:56 CET schreef David Carlson:
> David H, you have a good memory.  I found <
> https://bugs.gnucash.org/show_bug.cgi?id=796736> which shows the same
> problem with the date.  However, the penultimate comment by John Ralls
> states that when the size is manually set it should stick for subsequent
> use.  I personally have found that it is necessary to also manually click
> on the File > Save button to really make such changes stick.  If there has
> been an auto save somewhere along the line so that it is impossible to do a
> manual save, then it may be lost.  I thought I had filed a bug report for
> that but now I cannot find it.
> 
As far as I know save and autosave do the exact same thing.

However the settings are saved *per account* and probably also per invoice 
(haven't checked the last part).

The reasoning behind that is/was that the most common case to want to change 
the width of a column would be a description or memo field that's too narrow. 
That's typically not the same in all account registers, so it would only make 
sense to widen the account in which the column is too narrow.

The issue with the date field being too small has cropped up after that 
decision was made. I suspect it's a side effect of fixing the register to 
accommodate for Gtk3 and I consider this a bug. The default width should be 
calculated such that both the date and the drop-down arrow for the date fit 
properly in the column. It may be the width of the drop-down arrow is 
dependent on the gtk theme that's active on your system and we may have to 
query for it.

David C, you did report a few bugs related to this column sizing. I remember 
you asked for a way to reset to default widths for example (still a good 
enhancement imo) and possibly also one to apply a certain custom setting as 
default for all other registers. I don't think either of these has been 
implemented so far.

Regards,

Geert




More information about the gnucash-user mailing list