GWT-FlowPanel和调整大小 [英] GWT - FlowPanel and resizing
问题描述
我的应用程序中有几个Composite
小部件,这些小部件使用FlowPanel
作为其主要元素.我想知道的是,我是否需要为此进行任何调整? FlowPanel
没有实现RequiresResize
,所以我不能使用ResizeComposite
,但这也许意味着我不必?但是,FlowPanel
中的小部件如何得知大小调整的信息?
I have several Composite
widgets in my application that use a FlowPanel
as their main element. What I want to know is, do I need to take care of resizing in any way for this? FlowPanel
does not implement RequiresResize
, so I can't use a ResizeComposite
, but maybe that means I don't have to? But then how are the widgets inside the FlowPanel
informed of resizing?
推荐答案
如果要让窗口小部件适应浏览器窗口,请不要使用FlowPanel作为基础组合.请改用LayoutPanels.
Don't use FlowPanel as your base composite if you want to let your widgets adapt to your browser window. Use LayoutPanels instead.
检查此:
http://www.gwtproject.org/doc/latest/DevGuideUiPanels.html
这篇关于GWT-FlowPanel和调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!