Draw2D Label preferred size [message #656327] |
Fri, 25 February 2011 02:12  |
Eclipse User |
|
|
|
Hello,
I am working on an editor based on GEF.
I have a parent container which is able to get some childs.
The childs are simple labels with text and an icon.
The problem is, that if I add a child and the text is "too long", the parent container woun't be resized. Instead of resizing the parent container Draw2D cuts the label like "labeltex...".
Same problem if I add a childfigure which fits and change the text afterwards so that the label figure is bigger than the parent figure. No refresh, just a textcut.
I would appreciate any help, I tried to override getPreferredSize in the labelfigure and so on it didn't work at all.
Thanks in advance
Alex
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03628 seconds