I have been using Firefox 10 and have found the bug in the ExtJS 3.4. I have code for the form which is as follows:
Code:
formBeschreibungKategorie = new Ext.form.FormPanel({
width: 900,
height: 800,
// autoHeight: true,
url: '/admin/hotelkategories/setdescription/',
fileUpload: true,
title: 'Beschreibung der Kategorie',
frame: true,
layout: 'column',
labelWidth: 130,
items: [{
columnWidth: 0.7,
layout: 'form',
bodyStyle: 'padding: 10px;',
items:[{
xtype: 'textfield',
id: 'headline',
width: 400,
name: 'headline',
fieldLabel: 'Überschrift',
helpText: 'Überschrift der Kategoriebeschreibung',
allowBlank: false
},{
xtype: 'textarea',
id: 'description_short',
height: 75,
width: 400,
name: 'description_short',
fieldLabel: 'Kurzbeschreibung',
helpText: 'Kurzbeschreibung der Kategorie',
allowBlank: false
},{
xtype: 'htmleditor',
id: 'description_long',
height: 200,
width: 400,
fieldLabel: 'Beschreibung der Kategorie',
helpText: 'Beschreibung der Kategorie'
},{
xtype: 'label',
text: 'nur Bilder im *.jpg Format'
},{
xtype: 'textfield',
id: 'kategorieImage',
width: 400,
inputType: 'file',
fieldLabel: 'Bild',
helpText: 'Bild, Breite 150px'
}]
},{
columnWidth: 0.3,
bodyStyle: 'padding: 10px;',
items: [{
xtype: 'box',
autoEl: {
tag: 'div',
html: '<img id="kategoriePic" src="/images/kategorieImages/kategoriePic_' + memoryCategoryId + '.jpg">'
}
}]
}],
buttons: [{
text: 'speichern der Kategoriebeschreibung',
tooltip: 'speichern der Kategoriebeschreibung',
handler: function(){
formBeschreibungKategorie.getForm().submit({
params: {
language: memorySprache,
hotelId: memoryHotelId,
kategorieId: memoryCategoryId
},
success: function(){
var now = new Date();
Ext.getDom('kategoriePic').src = '/images/kategorieImages/kategoriePic_' + memoryCategoryId + '.jpg?' + now.getTime();
}
});
}
}]
});
And the following is the code for the panel:
Code:
tabs = new Ext.TabPanel({
activeTab: 0,
renderTo: 'tabs',
padding: 10,
height: 800,
// autoHeight: true,
id: 'kategorieTabs',
items: [{
xtype: 'panel',
title: 'Kategorie Stammdaten',
height: 500,
id: 'tabKategorieStammdaten',
items: [formKategorieHotel]
},{
xtype: 'panel',
title: 'Sprache',
disabled: true,
id: 'tabSprache',
height: 500,
items: [formBeschreibungKategorie]
}]
});
If you set value for the auto height then form is not visible in the panel. This happens only in the Firefox 10. I have used Firefox from 3.x.x and internet explorer 9.x. it was working properly there. Have you encountered the same with your Firefox 10 browser .
Bookmarks