当内容大小调整时,如何使gwt-ext窗口不能调整大小? [英] How do I make a gwt-ext window not resize when its content resizes?

查看:87
本文介绍了当内容大小调整时,如何使gwt-ext窗口不能调整大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 setHeight(600) /client/widgets/Window.htmlrel =nofollow noreferrer>窗口,这是它的初始大小。我也继续完成 setAutoScroll(true)

I've run setHeight(600) on a Window, that's it's initial size. I've also went ahead and done setAutoScroll(true).

当窗口内容调整大小时,窗口本身调整大小。我希望窗口的大小保持不变,当内容变大时,添加滚动条。
如果我手动调整窗口大小,然后让内容增长或缩小,我可以得到这个结果。

When the content of the window resizes, the window itself resizes. What I want is for the window to stay fixed in size, and when the content grows larger, add scrollbars. I can get this if I resize the window manually, then let the content grow or shrink.

推荐答案

检查了由GWT提供的功能 - setAutoHeights(false)

Have you checked the feature provided by GWT - setAutoHeights(false)?

这篇关于当内容大小调整时,如何使gwt-ext窗口不能调整大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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