开发者

GWT vertical layout

开发者 https://www.devze.com 2022-12-09 07:20 出处:网络
I need a vertical layout, which would fill browser\'s viewport top to bottom, with on overflow (scrollbars). I need to layout widgets on the top, and on the bottom, and have one widget in the center w

I need a vertical layout, which would fill browser's viewport top to bottom, with on overflow (scrollbars). I need to layout widgets on the top, and on the bottom, and have one widget in the center which would stretch to fill the remaining space.

There seems to be DockLayoutPanel for this purpose, the problem with it is that it forces me to specify widget sizes, and I don't know the sizes of the top/bottom widgets before the browser does it's layouting job, which is tricky (buggy) to tra开发者_如何学Cck. I cannot find the right moment when to measure my widgets, and I don't want to do this kind of layouting code anyway.


What about the body's onload event?


onAttach is event fired by every widget when it is been added to its parent once any widget as been added then you can get the offset height and width.

extend panel class for top, central and bottom then when all these panels has been added to parent try to get width and height..

0

精彩评论

暂无评论...
验证码 换一张
取 消