我正在用gxt中的BorderLayouts创建一个ContentPanel。需要设置面板的自动宽度和高度。setAutowidth()运行正常,但setAutoHeight()运行不正常。
那么,我应该实现什么来制作我的ContentPanel autoHeighed呢?
发布于 2011-06-20 23:10:20
你可以使用这个
Container.setHeight(“自动”);
这对我很管用。
还有另一种选择。你也可以试试这个
Container.setStyleAttribute(“高度”,“自动!重要”);
container.setStyleAttribute("overflow",“可见!重要”);
https://stackoverflow.com/questions/6166724
复制相似问题