GWT-FlowPanel和调整大小 [英] GWT - FlowPanel and resizing

查看:79
本文介绍了GWT-FlowPanel和调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有几个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆