gpt4 book ai didi

javascript - ExtJS复合字段在FF中不显示

转载 作者:行者123 更新时间:2023-11-29 16:27:16 25 4
gpt4 key购买 nike

我创建了一个字段集,它是表单的一部分,并且刚刚显示了 porpuse:

H_Info = Ext.extend ( Ext.form.FieldSet, {  title:         'Origination Info',  labelWidth:    1,  initComponent : function ( ) {    this.items = [ {      xtype:       'displayfield',      name:        'Name'    }, {      xtype:       'displayfield',      name:        'Address'          }, {      xtype:       'compositefield',                  items:       [ {        xtype:        'displayfield',        name:         'OrgDate',        width:        100             }, {        xtype:        'displayfield',        name:         'OrgValue',        width:        120,        flex:         1            } ]    }, {       xtype:    'displayfield',       name:     'CurrentValue'          } ];    H_Info.superclass.initComponent.call ( this );    } // initComponent } );

它按照 IE 6.0 中的预测工作,字段显示在预期的位置,但是当我在 FF 中尝试时,复合字段中分组的 2 个字段(OrgDate 和 OrgValue)不会显示。

知道我缺少什么吗?

最佳答案

Rob 建议在复合字段中添加默认值,如下所示:

      ....      xtype:       'compositefield',      defaults: {          fieldLabel: ' ',          labelSeparator: ' ',          height: 12      },       ....

为其添加高度,这不是完美的解决方案,但它会覆盖高度并强制复合字段显示(显示)

关于javascript - ExtJS复合字段在FF中不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4716287/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com