Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Centered FlowLayout stopped working?
Centered FlowLayout stopped working? [message #244410] Thu, 17 July 2008 08:18
Eclipse User
Originally posted by: n.n.com

I'm using GMF to generate the EditParts.
It seems FlowLayout with:
setMinorAlignment(FlowLayout.ALIGN_CENTER);
stopped working in the latest GEF/GMF.

I can't get the child figures to appear in the center of a vertical column.

Here is the generated code:
FlowLayout layoutThis = new FlowLayout();
layoutThis.setStretchMinorAxis(false);
layoutThis.setMinorAlignment(FlowLayout.ALIGN_CENTER);

layoutThis.setMajorAlignment(FlowLayout.ALIGN_CENTER);
layoutThis.setMajorSpacing(5);
layoutThis.setMinorSpacing(5);
layoutThis.setHorizontal(false);

this.setLayoutManager(layoutThis);
Previous Topic:Problem saving Draw2d diagram to image from within plugin (works standalone)
Next Topic:Resizing Images
Goto Forum:
  


Current Time: Thu Aug 21 02:37:08 EDT 2014

Powered by FUDForum. Page generated in 0.33612 seconds