У меня есть форма с набором полей, как показано ниже
config: {
centered: true,
height: 400,
id: 'inputForm',
itemId: 'inputForm',
width: 500,
hideOnMaskTap: true,
modal: true,
items: [
{
xtype: 'fieldset',
title: 'Title',
id:'inputformfieldset',
items: [
{
xtype: 'toolbar',
docked: 'bottom',
ui: 'light',
layout: {
type: 'hbox',
align: 'center',
pack: 'center'
},
items: [
{
xtype: 'button',
id: 'submitInputFormButton',
itemId: 'submitInputFormButton',
ui: 'confirm-round',
text: 'Submit'
},
{
xtype: 'button',
id: 'cancelInputFormButton',
itemId: 'cancelInputFormButton',
ui: 'decline-round',
text: 'Cancel'
}
]
}
]
}
]
}
Я динамически добавляю поля в форму. Когда я запускаю это в хроме, все работает. посмотреть скриншот
Но когда я запускаю эмулятор, метка поля не видна. см. снимок экрана
Любые идеи?
Обновление:
Я добавляю текстовое поле, подобное этому.
Ext.getCmp('inputformfieldset').add({
xtype: fieldType,
fieldLabel: record.get('name'),
name: record.get('name')
});