当内容调整大小时,如何使gwt-ext窗口不调整大小?

时间:2022-04-10 07:00:03

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

我在一个Window上运行了setHeight(600),这是它的初始大小。我也继续完成了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.

当窗口的内容调整大小时,窗口本身会调整大小。我想要的是窗口保持固定大小,当内容变大时,添加滚动条。如果我手动调整窗口大小,然后让内容增大或缩小,我可以得到这个。

1 个解决方案

#1


0  

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

你检查过GWT提供的功能 - setAutoHeights(false)吗?

#1


0  

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

你检查过GWT提供的功能 - setAutoHeights(false)吗?