Solved TD-8983: VisTblAutoFit functions not working correctly

Report bugs and possible workarounds for ANSI TD versions
UVS

TD-8983: VisTblAutoFit functions not working correctly

Post by UVS » 03 Nov 2009, 23:48

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
You do not have the required permissions to view the files attached to this post.

caa

Re: TD-8983: VisTblAutoFit functions not working correctly

Post by caa » 05 Nov 2009, 22:02

Looks like a bug to me. It's not taking into account the increased width of the bolded characters.

This is TD-8983.

UVS

Re: TD-8983: VisTblAutoFit functions not working correctly

Post by UVS » 05 Nov 2009, 22:31

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

caa

Re: TD-8983: VisTblAutoFit functions not working correctly

Post by caa » 05 Nov 2009, 23:21

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?

UVS

Re: TD-8983: VisTblAutoFit functions not working correctly

Post by UVS » 06 Nov 2009, 16:11

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
You do not have the required permissions to view the files attached to this post.

caa

Re: TD-8983: VisTblAutoFit functions not working correctly

Post by caa » 06 Nov 2009, 17:24

Ah, ok. To me, that was just part of the same problem: not figuring the correct width when bolded.

UVS

Re: TD-8983: VisTblAutoFit functions not working correctly

Post by UVS » 06 Nov 2009, 22:30

yes, but that white inside border isn't there at first.

Martin

Return to “Bug Reports (TD 4.2 and older)”

Who is online

Users browsing this forum: [Ccbot] and 0 guests