GWT TabLayoutPanel ie7第一个选项卡折叠
我有一个从 ie7 访问的 TabLayoutPanel。我第一次查看该选项卡时,它折叠起来约为 32 像素 x 32 像素。如果我选择第二个选项卡,内容区域将被填充,我可以返回到第一个选项卡,它看起来是正确的。我正在使用 tablayoutpanel 的所有祖先都是某种形式的布局面板。它适用于 ie8 和 chrome。有什么想法吗?
更新:我注意到调整大小不适用于选项卡面板。仅当我在选项卡之间切换时,面板才会调整大小。当我更改浏览器窗口大小时,选项卡面板保持相同的大小。当我第二次更改选项卡时,选项卡面板会正确填充浏览器。
I have a TabLayoutPanel that I access from ie7. The first time I view the tab it is collapsed ~32px x 32px. If I select the second tab, the content area fills, and I can go back to the first tab and it looks correct. I am using and all the ancestors of the tablayoutpanel are some form of layoutpanel. It works in ie8 and chrome. Any ideas?
Update: I have noticed that it is the resizing that is not working for the tab panel. The panel will only resize when I switch between tabs. When I change the browser window size, the tab panel stays the same size. The second I change tabs, the tab panel fills the browser correctly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不知道问题 4596 是如何修复的(无论如何不是在 2.3.0 中),我在 ie7 下看到了完全相同的效果。
幸运的是,这里有一个解决方法,您可以将其添加到视图或您正在使用的任何组合中。它对我有用,但请注意,我指定了 TabLayoutPanel 的大小,因为它位于 HTMLPanel 的中间。
I don't see how Issue 4596 is fixed ( not in 2.3.0 anyway), I'm seeing the exact same effect under ie7.
Fortunately here's a workaround you can add in your view or whatever composite you're using. It works for me, however note that I specify the size of the TabLayoutPanel, since it's in the middle of an HTMLPanel.
在将选项卡添加到页面之前,您是否偶然将选项卡添加到 TabLayoutPanel 中?
我注意到,如果将 TabLayoutPanel 添加到页面,然后添加选项卡,这个问题就会消失。
Are you by chance adding the tabs to the TabLayoutPanel before adding it to the page?
I've noticed that if you add the TabLayoutPanel to the page, then add the tabs, this problem will go away.
纪尧姆的解决方案几乎对我有用,只是我必须在下一个事件循环期间运行它(不要问我为什么):
Guillaume's solution almost worked for me, except that I had to run it during the next event loop (don't ask me why):
我有类似的问题。我显式调用
,然后第一次使用选项卡式面板访问 UI 时,组件会正确显示。
I have a similar problem. I explicitly call
and then the first time that I visit my UI with the tabbed panel the components are shown correctly.