我是GXT的新手。就连我的英语也不好。
我对GXT:BorderLayoutContainer有一个问题(我使用GXT 3.0.0 Beta.2)
我想在浏览器里填满BodrderLayoutConatainer,但是我不知道怎么做。
在GXT 2.4中,我可以使用Fitable,但是3.0中不能使用Fitable。
我如何在UiBinder中做到这一点?
提前谢谢。
//我的资源
<container:SimpleContainer borders="true" styleName="style.test">
<container:BorderLayoutContainer borders="true" resize="false">
<container:north>
<gxt:ContentPanel resize="false" >
<button:TextButton text="north/contents/Button"></button:TextButton>
</gxt:ContentPanel>
</container:north>
<container:center>
<container:SimpleContainer resize="false" borders="true" >
<button:TextButton text="center/simple/Button" ></button:TextButton>
</container:SimpleContainer>
</container:center>
<container:south>
<button:TextButton text="ABC" borders="true"></button:TextButton>
</container:south>
</container:BorderLayoutContainer>
</container:SimpleContainer>董菊
发布于 2012-01-29 00:52:15
在这种情况下,SimpleContainer是不必要的。此外,当您在ui:style中使用css类时,请确保将它们包含在{}括号中,这样您就可以使用styleName="{style.test}"而不是styleName="style.test"。
但是在手边的主题中,将BorderLayoutContainer添加到Viewport,并将其添加到页面,它的大小将根据页面调整。这可能可以在UiBinder中完成,尽管我还没有尝试过。
Viewport的任务是根据可用的窗口空间调整自身(及其子对象)的大小。SimpleContainer根据自身调整其子对象的大小-在构建UI时不经常使用它,但可以扩展它来创建其他容器(FieldLabel就是一个例子)。
https://stackoverflow.com/questions/9044427
复制相似问题