Layout in SmartGWT

Posted by sarav on Stack Overflow See other posts from Stack Overflow or by sarav
Published on 2010-05-02T09:12:50Z Indexed on 2010/05/02 9:17 UTC
Read the original article Hit count: 820

Filed under:
|
|

How to place a control at the center of a canvas?

I have a main VLayout set to 100%width and 100% haight. I want to place a grid at the center of this layout, meaning at the center of the browser' viewport. How to do that with smartGWT layouts?

setLayoutAlign(Alignment.CENTER)

This places the controls center to the layout's breadth axis. But if I nest HLayout and VLayout it is not giving desired result.

© Stack Overflow or respective owner

Related posts about gwt

Related posts about smartgwt