Set table cell height to display one line

General TRichView support forum. Please post your questions here
Post Reply
infrax
Posts: 31
Joined: Wed Aug 10, 2011 10:57 am

Set table cell height to display one line

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

May be you can include no-wrap options for paragraph inside a table cell?
infrax
Posts: 31
Joined: Wed Aug 10, 2011 10:57 am

Post 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.
Post Reply