gpt4 book ai didi

GWT UIBinder 选项卡面板

转载 作者:行者123 更新时间:2023-12-04 22:51:51 24 4
gpt4 key购买 nike

我想在带有两个选项卡的选项卡面板的主体内放置一些 anchor 。但是我的 anchor 不可见。代码如下

<g:TabLayoutPanel ui:field="lhsTabPanel" barUnit="PX" barHeight="60">
<g:tab>
<g:header>Analysis</g:header>
<g:FlowPanel>
<g:Anchor ui:field='personalInformation'>Personal Information</g:Anchor>
</g:FlowPanel>
</g:tab>
<g:tab>
<g:header>Comparison</g:header>
<g:FlowPanel ui:field="comparisonContent"/>
</g:tab>
</g:TabLayoutPanel>

个人信息选项卡不可见

最佳答案

TabLayoutPanels 必须添加到其他实现 ProvidesResize 的小部件中。例如,如果您将此 TabLayoutPanel 添加到 RootPanel 而不是 RootLayoutPanel,您将无法看到 TabLayoutPanel,因为 RootPanel 没有实现 ProvidesResize。

您无法看到选项卡的内容,因为 TabLayoutPanel 不知道它应该有多大。尝试将其添加到 LayoutPanel 的某个后代,并使用 setWidgetLeftRight 和相关函数显式设置其大小。

退房 http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels想要查询更多的信息。

关于GWT UIBinder 选项卡面板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3759757/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com