在 IE (Internet Explorer) 中使用 GWT 调整页面大小
这是我的场景,
在我的 GWT 页面上我有一个 TabPanel。当它充满数据时,它可能会变得很长。浏览器通过延长页面来响应。这当然会导致浏览器的垂直滚动条手柄缩小,以便它仅反映浏览器窗口中可见页面的百分比。
现在,如果我以编程方式从显示中删除 TabPanel,GWT 元素的大小会按照您的预期调整得更小,但浏览器页面保持相同的大小。这会在页面底部留下大量未使用的空白区域,用户可以滚动进入。而且,滚动条手柄也很小。
我想要的是当我删除选项卡面板时浏览器页面缩小以适应当前显示的内容。
此行为仅发生在 IE 中。在 Firefox 中,页面和滚动条手柄可以正确调整大小。
关于如何解决这个问题有什么想法吗?
Here's my scenario,
On my GWT page I have a TabPanel. When it is populated with data it can become quite long. The browser responds by lengthening the page. This of course causes the brower's vertical scroll bar handle to shrink so that it reflects only the percentage of the page that is visible in the brower's window.
Now, if I programatically remove the TabPanel from the display, the GWT elements re-size smaller as you would expect, but the browser page stays the same size. This leaves a large amount of unused white space at the bottom of the page that a user can scroll into. And, the scroll bar handle stays small as well.
What I would like is for the browser page to shrink to fit the currently displayed content when I remove the tab panel.
This behavior only occurs in IE. In firefox the page and scroll bar handle re-size properly.
Any ideas about how to address this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将所有 TabPanel 或所有内容放入 GWT ScrollPanel 中。
滚动面板可以是 RootPanel 的第一个元素,并拉伸以覆盖整个 Root Panel
You can put all TabPanel or all your content in a GWT ScrollPanel.
The scroll panel can be the first element of RootPanel and stretch to cover the whole of Root Panel