Hi Adrien,
  You were right, the changes I had made did have a bearing on this problem. 
However, they only reveal the miscoded HTML in GnuCash 3. Also, the changes in 
question are to the invoice report itself, not the stylesheet.

  It turns out that the relevant change I made is that we have no need for 
several of the columns (Date, Action, Discount and Taxable). As soon as those 
columns are eliminated, the table becomes narrower. Digging deeper, I 
discovered that GnuCash 2.6 inserts a vitally important width=“100%” into all 
but the outermost <table> command in the invoice. GnuCash 3.7 does not insert 
that argument. Thus, when several columns are removed, the table is narrower. 
Of course, my banner is still the same width, leaving the invoice body too 
small for the page.

  If you can confirm this behavior, I think we can call this a bug.

  Fortunately, I think I have found a workaround until the code is corrected. 
Thinking back about my misadventures with the CSS, I remembered that there was 
a width: 100% for each of the subtables. However, looking at the HTML code, I 
noticed that there was an additional table called “main-table” enclosing 
everything except the banner. This table style was not given the 100% width. 
Adding 

.main-table > table { width: 100% }

to the end of the CSS field in the invoice options gives me exactly what I want.

Best,
John

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to