I'm fairly sure this has been around for some time. I tested in 4.0 and 5.2.
VisTblAutoFit only fit's on the base font of a Child Table or Child Grid (in 5.2). If I use VisTblSetRowFont to set a row as BOLD, then do a VisTblAutoFit, it does not correctly fit the column width for the rows with bolded fonts. In a Child Grid, double clicking on the row separator does Auto fit like it is suppose to, but still only to the base font.
The second problem shows up with this in VistTblSetRowFont.
It took some time to figure out what was going on. But it seems that the VisTblSetRowFont adds a small white border on the right side of the columns.
But even with this small white border, the columns still do not AutoFit correctly if a row is changed programmatically. I haven't tested, but a work around might be to set the base font as bold then remove the bold where I want, instead of the opposite. shrug.....
Open the test file I sent (5.2 Text). You can widen the rows, and press the AutoFit button and everything nicely fits. Then select one row, and press the Bold button. You will see the row does not fit as it should.
So is this a bug, or am I missing something?
This is TD-8983.
That covers one part of it, VisTblAutoFit. But what about the part adding the extra inside border on the right side of every cell, after calling VisTblSetRowFont?
Just in case you want this information:
Windows XP SP 3
TD 5.2 Build 12478
TD 4.0 PTF1 Build 13724
An easy way to see this is to size a column so it sits right next to the text. Then click on the Bold button.
Who is online
Users browsing this forum: [Ccbot] and 0 guests