Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FlowLayout not wrapping
FlowLayout not wrapping [message #249458] Tue, 30 June 2009 23:16
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
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?
Previous Topic:Palette Drawer Preferences
Next Topic:Drag and drop from a TreeViewer
Goto Forum:
  


Current Time: Thu Apr 25 13:45:23 GMT 2024

Powered by FUDForum. Page generated in 0.05368 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top