setAutoHeight()gxt

| 我在gxt中创建带有BorderLayouts的ContentPanel。 需要为面板设置自动宽度和高度。 setAutowidth()可以正常工作,但setAutoHeight()不能。 因此,我应该实现什么使我的ContentPanel自动权衡?     
已邀请:
        你可以用这个 container.setHeight(\“ auto \”); 它为我工作。 还有另一种选择。您也可以尝试 container.setStyleAttribute(\“ height \”,\“ auto!important \”); container.setStyleAttribute(\“ overflow \”,\“ visible!important \”);     

要回复问题请先登录注册