PDA

View Full Version : [FIXED] RC1b-HORIZONTAL RowLayout has bug with Margins.



zsumore
23 Jun 2008, 8:33 PM
public void onModuleLoad() {

Viewport v = new Viewport();
v.setLayout(new RowLayout(Orientation.HORIZONTAL));

ContentPanel panel1 = new ContentPanel();
panel1.setHeading("Panel 1");

ContentPanel panel2 = new ContentPanel();
panel2.setHeading("Panel 2");

v.add(panel1, new RowData(.3, 1, new Margins(5)));
v.add(panel2, new RowData(.7, 50, new Margins(5)));

RootPanel.get().add(v);

}

darrellmeyer
24 Jun 2008, 11:04 AM
Fix is in SVN.