HTML Markup in a table (row height) [message #841636] |
Wed, 11 April 2012 11:19  |
Eclipse User |
|
|
|
Hi,
today I tried to use the new RWT.MARKUP_ENABLED for a table. Everything works well, but the line (row) height is not set automatically to a correct size.
If have a table there some lines have a line break (<br />) and some not. So I lines with none, one, two or three line breaks. Each line shall have the optional height. Currently only the 'one-row-height' is used.
How can I ensure that each line gets the height that is optional for that row.
(Using RWT.CUSTOM_ITEM_HEIGHT will set the height of all rows, but it is not possible to set the height for specific lines.)
Any hint is welcome.
Thanks.
Regards
Karsten
|
|
|
Re: HTML Markup in a table (row height) [message #841655 is a reply to message #841636] |
Wed, 11 April 2012 11:36   |
Eclipse User |
|
|
|
Hi Karsten,
to be SWT API compatible (Table#getItemHeight return a single value),
custom item height is set for all rows. Currently it's not possible to
set the item height for a particular item.
Best,
Ivan
On 4/11/2012 6:19 PM, Karsten Voigt wrote:
> Hi,
>
> today I tried to use the new RWT.MARKUP_ENABLED for a table.
> Everything works well, but the line (row) height is not set
> automatically to a correct size.
>
> If have a table there some lines have a line break (<br />) and some
> not. So I lines with none, one, two or three line breaks. Each line
> shall have the optional height. Currently only the 'one-row-height' is
> used.
>
> How can I ensure that each line gets the height that is optional for
> that row.
>
> (Using RWT.CUSTOM_ITEM_HEIGHT will set the height of all rows, but it
> is not possible to set the height for specific lines.)
>
> Any hint is welcome.
>
> Thanks.
>
> Regards
> Karsten
>
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Re: HTML Markup in a table (row height) [message #841673 is a reply to message #841655] |
Wed, 11 April 2012 12:06  |
Eclipse User |
|
|
|
Thanks for the answer. So maybe RWT.MARKUP_ENABLED is not usable for my case. I'll switch back to my previous approach to create multiple rows if a cell requires multiple lines. (This causes some design issues, but is much better than having one huge row height that is only required for less than 10% of the rows.)
|
|
|
Powered by
FUDForum. Page generated in 0.05171 seconds