|
|
Re: Remove the horizontal line in the middle of Compartment? [message #207164 is a reply to message #207149] |
Fri, 26 September 2008 11:40 |
Thomas Beyer Messages: 47 Registered: July 2009 |
Member |
|
|
Hi Nikolay,
had the same issue, when I moved from GMF 2.0 (or some Milestone of 2.1) to
GMF 2.1.
In your grafdef-model make sure, you set the correct layouts and constraints
for your elements:
My Figure, that looks like yours has the following definition:
RoundedRectangle XXX
- BorderLayout
- Label XXXLabel
- BorderLayoutData Beginning (vertical is set to true)
- Rectangle XXXCompartment
- BorderLayoutData Center (vertical is also set to true)
- Child Access (... for label)
- Child Access (... for comparment)
should do the trick for you.
HTH
Thomas
"Nikolay Georgiev" <erdtek@gmail.com> schrieb im Newsbeitrag
news:0b9cbfc4806cef3d36a373cb0e3abcdd$1@www.eclipse.org...
> Hello,
>
> in compartments there is a horizontal line above which stays the Label of
> the compartment. Normally this line is just under the Label, but somehow
> it happened to me that the line now is in the middle of the compartment.
> And now the compartments are divided in upper (empty) and bottom (where
> elements are added) part, but I would like them as before.
>
> Here is a picture of a compartment:
> http://posithing.com/temp/pics/gmf-line-in-the-middle.bmp
>
> You can see that after an element is added to the compartment, the line
> moves upwards.
>
> Do you what could be the reason for it and how can I make the line just
> stays under the label? The problem is not in the "List Layout" property.
>
> I'm using Eclipse 3.4.0 and GMF SDK 2.1.0 and GMF Runtime 1.1.0
>
> Greetings,
> Nikolay
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03066 seconds