TableViewer / LabelProvider Images with different width [message #1016165] |
Tue, 05 March 2013 05:23  |
Eclipse User |
|
|
|
Hi,
is it possible to have Images with different width in one TableViewer?
It seems, that TableViewer saves the size of the first image and set this to the width of all images.
Cols: If another column has a wider Image, it will be cut off at the width of the first image from the first column with an image.
Rows: If another row has no Image or an Image with another size, it will be cutted off or filled.
Is there a SWT.Syle or a switch to prevent that check, calculation and resizing of all images to just have images with their original size, regardless of the first found image?
Regards,
Jens
|
|
|
Re: TableViewer / LabelProvider Images with different width [message #1016614 is a reply to message #1016165] |
Thu, 07 March 2013 02:15  |
Eclipse User |
|
|
|
Hi Jens,
RAP inherited this behavior from SWT Tree/Table. The only workaround I'm
aware of is to enable markup in Table/Tree and set your image together
with the text (markup).
HTH,
Ivan
On 3/7/2013 4:20 AM, Jens Mallien wrote:
> Hi,
>
> is it possible to have Images with different width in one TableViewer?
>
> It seems, that TableViewer saves the size of the first image and set this to the width of all images.
> Cols: If another column has a wider Image, it will be cut off at the width of the first image from the first column with an image.
> Rows: If another row has no Image or an Image with another size, it will be cutted off or filled.
>
> Is there a SWT.Syle or a switch to prevent that check, calculation and resizing of all images to just have images with their original size, regardless of the first found image?
>
> Regards,
> Jens
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.06184 seconds