ExtJS panel does not render properly unless I open Firebug - WTF?
Posted
by
Huuuze
on Stack Overflow
See other posts from Stack Overflow
or by Huuuze
Published on 2010-08-20T19:30:32Z
Indexed on
2013/06/30
16:21 UTC
Read the original article
Hit count: 156
I have the following ExtJS Panel embedded in another Panel, which then resides in a TabPanel and the TabPanel is in a FormPanel.
With that being said, these start/end date fields are initially displayed in very small cells -- the cells are so small that I see horizontal scroll bars. Now here's the weird part: if I open Firebug, everything pops into place.
Does anyone know what's going on? Why isn't it rendering properly in the first place and why does Firebug cause everything to work properly simply by opening Firebug?
var dateFields = new Ext.Panel({
id: 'dateFields',
labelAlign: 'bottom',
border: false,
items: [{
layout: 'column',
defaults: {
columnWidth: 0.5
},
items: [{
layout: 'form',
border: false,
items: [{
xtype: 'datefield',
name: 'start_date',
fieldLabel: 'Start Date'
}]
}, {
layout: 'form',
border: false,
items: [{
xtype: 'datefield',
name: 'end_date',
fieldLabel: 'End Date'
}]
}]
}]
});
© Stack Overflow or respective owner