FlowLayout not wrapping [message #249458] |
Tue, 30 June 2009 19:16 |
Eclipse User |
|
|
|
I have a parent figure that is created like so:
@Override
protected IFigure createFigure() {
IFigure figure = new Panel();
figure.setBorder(new MarginBorder(10));
FlowLayout layout = new FlowLayout(true);
layout.setMajorSpacing(10);
layout.setMinorSpacing(10);
figure.setLayoutManager(layout);
return figure;
}
The child EditParts create their figures like so:
@Override
protected IFigure createFigure() {
final Ellipse figure = new Ellipse();
figure.setSize(25, 25);
figure.setLineWidth(1);
return figure;
}
What happens is that the children are never wrapped and they all end up on
the same line -- even if I set an explicit maximum width for the parent
figure!
What do I need to do to make the children wrap?
|
|
|
Powered by
FUDForum. Page generated in 0.03103 seconds