Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » HTML Markup in a table (row height)
HTML Markup in a table (row height) [message #841636] Wed, 11 April 2012 11:19 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.)
Previous Topic:About org.eclipse.rap.rwt.supplemental.filedialog
Next Topic:Who can provide demos of RAP upload and download
Goto Forum:
  


Current Time: Fri Jun 20 19:43:45 EDT 2025

Powered by FUDForum. Page generated in 0.05171 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top