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);
|
|
|
Powered by
FUDForum. Page generated in 0.31240 seconds