ukyo
26 Oct 2010, 5:51 PM
Hi All,
In my case, I need hide and show nestedlist as a docked item.
If the dockeditem(nestedlist) show, the items will display with the rest width of the panel.
But after the dockeditem(nestedlist) hide, the items still display with the rest width of the panel. I appreciate it should display with the 100% width from its parent contain.
And I check the element of the page.The items' width after dockeditem hide, still the same as it before.I believe the problem is here. I try to change the width of el, but it doesn't work either.
nestedList.hide(false);
Ext.getCmp('top_content').removeDocked(nestedList,false);
Ext.getCmp('top_content').doComponentLayout();
Ext.getCmp('top_content').removeAll();
Ext.getCmp('top_content').add(carousel);
Ext.getCmp('top_content').doLayout();
In my case, I need hide and show nestedlist as a docked item.
If the dockeditem(nestedlist) show, the items will display with the rest width of the panel.
But after the dockeditem(nestedlist) hide, the items still display with the rest width of the panel. I appreciate it should display with the 100% width from its parent contain.
And I check the element of the page.The items' width after dockeditem hide, still the same as it before.I believe the problem is here. I try to change the width of el, but it doesn't work either.
nestedList.hide(false);
Ext.getCmp('top_content').removeDocked(nestedList,false);
Ext.getCmp('top_content').doComponentLayout();
Ext.getCmp('top_content').removeAll();
Ext.getCmp('top_content').add(carousel);
Ext.getCmp('top_content').doLayout();