Re: How to centre fixed size panel inside another layout panel or screen

2013-04-17 Thread stuckagain
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 th

Re: How to centre fixed size panel inside another layout panel or screen

2013-04-17 Thread Jens
> 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 wo

Re: How to centre fixed size panel inside another layout panel or screen

2013-04-18 Thread stuckagain
Hi Jens, Great, it works exactly as I want! Such a simple approach as well, it should be part of GWT though. David On Thursday, February 2, 2012 1:23:57 AM UTC+1, espinosa_cz wrote: > Hi guys, > > I manage to put my context panel to the middle of the browser page in > Vaadin. Seem my scree

Re: How to centre fixed size panel inside another layout panel or screen

2012-02-02 Thread espinosa_cz
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.setWidgetLeftW