BoxLayout

3 views
Skip to first unread message

Nico

unread,
Aug 24, 2010, 11:48:34 AM8/24/10
to gwt-mosaic
Hello all,

I currently have to use the new version of GWT Mosaïc and I don't
uderstand how works now the BoxLayout!
Indeed, in my previous project I used an old version (0.3.0) and I was
able to center all components I want with this kind of code :

LayoutPanel myPanel = new LayoutPanel(new
BoxLayout(Orientation.VERTICAL, Alignment.CENTER));
myPanel.add(myOtherPanel, new BoxLayoutData(0.5d, 0.2d));

Now, I replace the second line by
myPanel.add(myOtherPanel, new BoxLayoutData("50%", "20%"));

But nothing is centered...

Are there new files to integrate in gwt.xml file? Must I change the
kind of Layout?

Nico

unread,
Aug 26, 2010, 2:59:35 AM8/26/10
to gwt-mosaic
Problem resolved by a .layout().
Reply all
Reply to author
Forward
0 new messages