[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Fit children in parent


Hi,

What would be the easiest way for a parent control to fit its children (no scroll bar - a component has to have the height of the sum of heights of its children)?

For example: my main diagram element is a component which has a compartment, and in that compartment i store its children. If i add the component to the diagram with only one click (so that it has the default size) then the component re-sizes according to its children (the desired functionality); but if i drag the contours of the component or change its dimensions with a mouse then when adding new children the component retains its dimensions and a scroll bar appears.

Thank you