PDA

View Full Version : removeDocked and doComponentLayout,the DockedCmp still hold the area?



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();

ukyo
26 Oct 2010, 10:28 PM
one more thing, the left value of the items is not right, it should be 0px.
But after remove docked item. the items left value still 250px, witch the docked item's width value.

Steffen Hiller
5 Nov 2010, 1:29 PM
I'm having the same problem with 0.99. :-/ Could you solve it?