Hi, Maybe you should file a bug report, a center layout or something would be great! Or indeed support for Alignment.MIDDLE. I'm in the progress of updating and old code base to standards compliant mode and centering widget on the window is used all over the place. Before I could just set the height of a table to 100% and using 3 columns, and let the browser figure out row distribution, but this no longer works in standards mode. David
On Thursday, February 2, 2012 9:16:10 PM UTC+1, espinosa_cz wrote: > Lets look at it from a different angle. > There is a familiar example in GWT documentation: > > http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels > > > Widget child0, child1, child2; > LayoutPanel p = new LayoutPanel(); > p.add(child0); p.add(child1); p.add(child2); > > p.setWidgetLeftWidth(child0, 0, PCT, 50, PCT); // Left panel > p.setWidgetRightWidth(child1, 0, PCT, 50, PCT); // Right panel > > p.setWidgetLeftRight(child2, 5, EM, 5, EM); // Center panel > p.setWidgetTopBottom(child2, 5, EM, 5, EM); > > How to define the center panel using flexible percents (PCT) and not > fixed size? > Why is there exactly 5 EM by the way? > > Espinosa -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
