PDA

View Full Version : docketItems as array issue



MartiCode
4 Mar 2011, 5:21 AM
Sencha Touch version tested:

1.0.1
only default ext-all.css



Platform tested against:

Android 2.2
Chrome


Description:

Docked button only works the first time the panel is created and shown


Test Case:


a = Ext.extend(Ext.form.FormPanel, {
modal: true,
fullscreen: true,
cls: 'overlay',
dockedItems: [{
xtype: 'button',
dock: 'bottom',
text: 'click me',
handler: function (btn) {
btn.up('panel').destroy();
}
}]
});
new a().show();
// click on the button here
new a().show();
// click again to close, it should, but it doesn't


Debugging already done:

Passing an object (ie: {}) directly to dockedItems rather than an array of object (ie: [{}]) actually fix the problem

davidyang
9 Mar 2011, 7:40 PM
If I Ext.extend a TabPanel, and pass it a dockedItems array instead of just an object, I get two tab panels.

MartiCode
1 Apr 2011, 12:44 AM
The issue is still there in version 1.1.