Cells as percentage instead of auto

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Cells as percentage instead of auto

Post by jgkoehn »

Greetings,
I need my cells in a 100% table to be as a percentage. I am working with the html/xhtml importer and adjusting it to our needs.
I know that by default a cell's best width appears to be 0. I do not know the percent width of the cells but need it to be done. Can I set all cells to BestWidth:=-1 and the table being 100% will adjust for this?
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: Cells as percentage instead of auto

Post by jgkoehn »

I think I figured it out to be a different problem. Not this thanks!
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Cells as percentage instead of auto

Post by Sergey Tkachenko »

Negative values of BestWidth mean width defined in percent.
BestWidth = -1 means 1%
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: Cells as percentage instead of auto

Post by jgkoehn »

Greetings Sergey,
I figured as much and auto seems to work in our case.
Post Reply