2012-01-27 3 views
0

Я пробовал много вещей, чтобы показать ярлыки слева, но они продолжают отображаться вверху слева. Что может быть причиной?formLabels показаны в левом верхнем углу в ExtJS

enter image description here

Фактический код 3105 строк. Связанный код:

var bildirilenArizaAlt = new Ext.form.FormPanel({ 

    frame : true, 
    id: "bildirilenArizaAltid", 
    layout: { 
     type: 'table', 
     columns: 2 
    }, 
    defaults : { 
     padding : 0, 
     width : 245, 
     cellCls : 'verticalAlignTop', 
     border : false,  
    }, 
    labelWidth: 30, 
    labelAlign: 'right', 
    items: [{ 
     layout:'form', 
     items:[{ 
      xtype : 'dynaCombo', 
      table : 'TANIMLAR_DET', 
      field : 'TANIM_DET_ADI', 
      no : 'TANIM_DET_NO', 
      id: 'bildirilenArizaAltbir', 
      fieldLabel : LANG.ISEMRI__SERVIS_TURU, 
      hiddenName : "SERVIS_TURU", 
      forceSelection : true, 
      readOnly: (loggedUser.domain == "demo") ? true : false, 
      where : [{ 
       field : 'TANIM_NO', 
       value : 1, 
       queryType : 0, 
       whereType : 'and', 
       searchType : 'default' 
      }] 
     }] 
    },{ 
     layout:'form', 
     items:[{ 
      xtype : 'textfield', 
      name : 'SERVIS_VEREN', 
      id : 'SERVIS_VERENba', 
      allowBlank: false, 
      readOnly: true, 
      fieldLabel : 'Ekip'}] 
    },{ 
     layout:'form', 
     items:[{ 
     layout: 'form', 
     items:[{ 
      xtype : 'textfield', 
      id: 'montaj_kart_no_id', 
      fieldLabel: LANG.ISEMRI__MOUNT_CARD_NO, 
      name : 'MONTAJ_KART_NO' 
      }] 
     }] 
    }] 
}); 

ответ

1

Данное поведение этикетки означает, что этикетка слишком длинна или слишком малая ширина панели. Попробуйте изменить размер панели и labelWidth.