2011-01-21 42 views
0

我很抱歉我的英语不好,但我希望你能理解。在布局完成之前显示表格字段

什么是我的问题....

我写了一个代码,以简单的节目包含文本框,htmleditors,组合框等一切顺利,但在Firefox的形式布局完成之前,我的领域出现的形式。所以它看起来很奇怪,因为表单域与其他组件重叠。

示例代码:

positionsPanel = new Ext.FormPanel({ 
margins  : '2 2 2 0', 
frame  : true, 
flex  : 3, 
labelWidth : 220, 
buttonAlign : 'right', 
labelAlign : 'top', 
autoScroll : true, 
height  : oldFormPanelHeight, //this is ok, just a value 
autoShow : true, 
defaults : { 
    enableKeyEvents : true, 
    anchor   : '97%' 
}, 
items  : [{...etc. 

你有任何想法如何解决呢?非常感谢......

回答

0

删除软硬度:3

注:当此组件已配置为使用BoxLayout的集装箱呈现这个配置时才使用。

默认情况下(在你的情况也)FormPanel中使用“形”布局

+0

thanx您的答案... – Startrooper01 2011-01-24 14:37:31