Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gwt GXT//如何使用BorderLayoutContainer Suitely浏览器?在GXT 3.0 Beta2中_Gwt_Gxt - Fatal编程技术网

Gwt GXT//如何使用BorderLayoutContainer Suitely浏览器?在GXT 3.0 Beta2中

Gwt GXT//如何使用BorderLayoutContainer Suitely浏览器?在GXT 3.0 Beta2中,gwt,gxt,Gwt,Gxt,我是GXT的新手。即使我英语也不好 我对GXT:BorderLayoutContainer有问题 (我使用GXT 3.0.0 Beta.2) 我想在浏览器中填写BorderLayoutConataner,但我不知道怎么做 在GXT 2.4中,我可以使用Fitable,但3.0中没有Fitable 如何在UiBinder中实现这一点?(在Xml中) 提前谢谢 //我的消息来源 <container:SimpleContainer borders="true" styleName="style

我是GXT的新手。即使我英语也不好

我对GXT:BorderLayoutContainer有问题 (我使用GXT 3.0.0 Beta.2)

我想在浏览器中填写BorderLayoutConataner,但我不知道怎么做

在GXT 2.4中,我可以使用Fitable,但3.0中没有Fitable

如何在UiBinder中实现这一点?(在Xml中)

提前谢谢

//我的消息来源

<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>


Dong ju

在这种情况下不需要SimpleContainer。此外,当您在ui:style中使用css类时,请确保将它们包装在{}括号中,这样您就有了
styleName=“{style.test}”
而不是
styleName=“style.test”

但是在手头的主题上,将BorderLayoutContainer添加到视口中,并将其添加到页面中,它将根据页面大小调整大小。这可能可以在UiBinder中完成,尽管我还没有尝试过


视口的任务是根据可用窗口空间调整自身(及其子对象)的大小。SimpleContainer根据自身大小调整其子容器的大小-在构建UI时不经常使用它,但它可以扩展以生成其他容器(FieldLabel就是一个例子)。

感谢您的帮助。我解决了这个问题。问题是轮到BorderLayout了。现在,我知道了。中间是最后一个转弯,但我没有跟上。。再次感谢您的建议。我不确定您所说的“转”是什么意思,但我认为您需要将元素移动到元素之后。如果我误解了您的意思,那么最好用代码示例和您遇到的错误提出一个新问题。如果能解决你的问题,请接受答案。是的,我以前听不懂,因为我的英语不好。。。所以,我确信“哇,我解决了这个问题!!”。但是我不能。。现在,我用BorderLayoutData和ViewPort解决了这个问题。谢谢你,科林。如果我再次遇到问题,我会等待你的帮助。。对不起,这是我第一次来这里,所以我不知道如何接受答案。。我会找到“接受你的答案”按钮:)sencha论坛可能是另一个发布关于GXT的特定问题的好地方-你可能想从问答论坛开始。uibinder+BorderLayoutContainer的代码示例也可能有所帮助