meyerovb
21 Jul 2010, 8:58 AM
In the below example, after clicking the second button and hiding the first button, how do I re-render the component to move the second button up to the position of the first docked element?
Ext.setup({ onReady: function () {
new Ext.Panel({ fullscreen: true,
dockedItems: [
{ dock: 'top', xtype: 'button', id: 'but1', text: 'But1' },
{ dock: 'top', xtype: 'button', text: 'Hide But1',
handler: function () { Ext.getCmp('but1').hide(); }
}]
});
}});
Ext.setup({ onReady: function () {
new Ext.Panel({ fullscreen: true,
dockedItems: [
{ dock: 'top', xtype: 'button', id: 'but1', text: 'But1' },
{ dock: 'top', xtype: 'button', text: 'Hide But1',
handler: function () { Ext.getCmp('but1').hide(); }
}]
});
}});