Page 1 of 1

Set table cell height to display one line

Posted: Mon Oct 10, 2011 9:08 am
by infrax
Hi

I'm generating RV data first in xml and than with RichViewXML, I import it in RichView. The problem is with table cells height.

If the content of one cell expands cell width, I don't want the cell to expand in multiple rows.
I noticed that I can assign cell width and height and set rvtoIgnoreContentHeight and ignorecontentwidth to table options. This works fine. The problem is that when I'm generating XML, I don't know the height to assign to cell so that only one line will be displayed (height depends on text font).

Is there any way to achieve this?

Posted: Mon Oct 10, 2011 1:30 pm
by Sergey Tkachenko
May be you can include no-wrap options for paragraph inside a table cell?

Posted: Tue Oct 11, 2011 5:43 am
by infrax
Thanks. That worked.

I also got almost the same result with calculating height from max font size (used in that cell) + CellPadding, but I think your solution is better.