【发布时间】:2012-11-19 18:21:19
【问题描述】:
我正在尝试使用 DockLayoutPanel 来布局我的页面,并且我正在使用 gwt-platfrom 插件来创建演示者和视图对。当我在 view.ui.xml 中添加以下代码时,我只能看到标题部分,其余部分不可见,我的方法有什么问题?
<ui:style>
.eastPanel {
background-color: #F60;
}
.westPanel {
background-color: #EEE;
}
.northPanel {
background-color: #39F;
}
.southPanel {
background-color: #99C;
}
.centerPanel {
background-color: #FFC;
}
</ui:style>
<g:DockLayoutPanel unit='EM'>
<g:north size='5'>
<g:FlowPanel styleName="{style.northPanel}">
<g:Label>This is the NORTH panel</g:Label>
</g:FlowPanel>
</g:north>
<g:west size='15'>
<g:FlowPanel styleName="{style.westPanel}">
<g:Label>This is the WEST panel</g:Label>
</g:FlowPanel>
</g:west>
<g:center>
<g:FlowPanel styleName="{style.centerPanel}">
<g:Label>This is the CENTER panel</g:Label>
</g:FlowPanel>
</g:center>
</g:DockLayoutPanel>
谢谢,
【问题讨论】:
-
西子面板的宽度是 192em。 Dock 布局面板的总宽度是多少?
-
@Boris 我把我的西尺码改成了 15 号,但试了还是不行
标签: gwt uibinder gwt-platform gwtp