SWT CLabel does ellipsis when text is too long to fit in the widget size. This behavior does not work in RWT.

More generally it would be nice to have a way to enable text ellipsis on widgets even if it's not supported by SWT.
Ellipsis would make sense on most read-only widgets: Label, Buttons, CTabItem, TabItem, Column Headers, Tree/Table cell...

This can be partially worked around on server side by calling computeSize with different text values and see when the result fit in the final size we want to use.
However this is very inefficient, generates a lot of TextSizeDetermination queries and we end up seeing the different iteration on client.

So the questions are:
* Is there a way to enable browser builtin ellipsis support for some div ( white-space : nowrap;text-overflow:ellipsis) styles using theming/RemoteScripting?
* Is there a plan to support ellipsis out of the box?

Am 04.04.2014 10:12, schrieb Sebastien Arod:
> Hi,
>
> SWT CLabel does ellipsis when text is too long to fit in the widget
> size. This behavior does not work in RWT.
>
> More generally it would be nice to have a way to enable text ellipsis on
> widgets even if it's not supported by SWT.
> Ellipsis would make sense on most read-only widgets: Label, Buttons,
> CTabItem, TabItem, Column Headers, Tree/Table cell...
>
> This can be partially worked around on server side by calling
> computeSize with different text values and see when the result fit in
> the final size we want to use.
> However this is very inefficient, generates a lot of
> TextSizeDetermination queries and we end up seeing the different
> iteration on client.
>
> So the questions are:
> * Is there a way to enable browser builtin ellipsis support for some div
> ( white-space : nowrap;text-overflow:ellipsis) styles using
> theming/RemoteScripting?
> * Is there a plan to support ellipsis out of the box?
> Regards,
> -Seb
>