This is making me bald...
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?
Martin
TD-8983: VisTblAutoFit functions not working correctly
TD-8983: VisTblAutoFit functions not working correctly
You do not have the required permissions to view the files attached to this post.
Re: TD-8983: VisTblAutoFit functions not working correctly
Looks like a bug to me. It's not taking into account the increased width of the bolded characters.
This is TD-8983.
This is TD-8983.
Re: TD-8983: VisTblAutoFit functions not working correctly
Thanks Chris.
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?
Martin
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?
Martin
Re: TD-8983: VisTblAutoFit functions not working correctly
Well, honestly, I'm not seeing that in my tests. But maybe I'm just not looking at it right... can you send me a screenshot with it outlined?
Re: TD-8983: VisTblAutoFit functions not working correctly
Here is a Before and After screen shot. This problem isn't showing in Grids, just child tables. Same problem happens in TD4.0 SP1 on Child tables.
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.
HTH,
Martin
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.
HTH,
Martin
You do not have the required permissions to view the files attached to this post.
Re: TD-8983: VisTblAutoFit functions not working correctly
Ah, ok. To me, that was just part of the same problem: not figuring the correct width when bolded.
Re: TD-8983: VisTblAutoFit functions not working correctly
yes, but that white inside border isn't there at first.
Martin
Martin
Who is online
Users browsing this forum: [Ccbot] and 0 guests