WrappingLabel question [message #235915] |
Fri, 10 July 2009 09:51 |
Eclipse User |
|
|
|
Originally posted by: schoepke.thetaris.com
Hi all
I have some editparts that just contain one label to display the name of a
model element. This label is generated as WrappingLabel and shows up just
fine.
But, unfortunately, the label seems to fill the whole figure of the
containing editpart's figure, so when I resize the figure, the label
inside resizes with it, so it always takes up the whole figure space.
How can I tell the label to only take up as much space as it really needs
for its icon and text? I want the rest of the containing figure to be
"free space" so I could see its background and click or double-click on it
(e.g. for opening sub-diagrams).
Thanks for any hints
Norbert Schöpke
|
|
|
Re: WrappingLabel question [message #235960 is a reply to message #235915] |
Fri, 10 July 2009 11:45 |
Eclipse User |
|
|
|
Originally posted by: aurelien.pupier.esial.net
Norbert Schöpke a écrit :
> Hi all
>
> I have some editparts that just contain one label to display the name of
> a model element. This label is generated as WrappingLabel and shows up
> just fine.
> But, unfortunately, the label seems to fill the whole figure of the
> containing editpart's figure, so when I resize the figure, the label
> inside resizes with it, so it always takes up the whole figure space.
>
> How can I tell the label to only take up as much space as it really
> needs for its icon and text? I want the rest of the containing figure to
> be "free space" so I could see its background and click or double-click
> on it (e.g. for opening sub-diagrams).
>
> Thanks for any hints
> Norbert Schöpke
>
Hi Norbert,
Perhaps you can set a maximum size dimension on your label in the gmfgraph definition.
Aurelien Pupier
|
|
|
Powered by
FUDForum. Page generated in 0.02116 seconds