[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Parent-child layout problem

Merlin,

The behavior you are seeing use the affixed parent side is expected. There is a locator used to determine where these border item figures should be placed. You can customize the locator used to place the figures where you want.

Regards,
Cherie


Merlin wrote:
Hi, I am new with GMF and I am trying to get use of the layouts... but somehow I am not able to do it right. What I want to achieve is the following - one figure which children (two types of children) are displayed left and right (according to the type) at the figure rand. I thought using BorderLayout and two compartments for the childes, but I can't get it right. The best I got was by using affixed parent side, bit this solution seems not stable enough - when I resize the figure or add more childes, it is not clear where the new child will appear - on top, bottom or even on the opposite side of the figure - when there are more childes.

This is what I want to achieve:
_____________
|             |
|O           O|
|O            |
|             |
|_____________|

Can someone please post an example how a parent can layout it's childes?
Some clues at least?

Thanks a lot, I am really stuck for some time...

Merlin