-
26 Oct 2010 5:51 PM #1
removeDocked and doComponentLayout,the DockedCmp still hold the area?
removeDocked and doComponentLayout,the DockedCmp still hold the area?
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.
Code: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();
-
26 Oct 2010 10:28 PM #2
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.
-
5 Nov 2010 1:29 PM #3
I'm having the same problem with 0.99.
Could you solve it?Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
Similar Threads
-
[FIXED-279]doComponentLayout and doLayout do nothing after removeDocked or setHeight
By djkraz in forum Sencha Touch 1.x: BugsReplies: 10Last Post: 4 Dec 2011, 10:18 PM -
problem with removeDocked and addDocked in 0.97
By willi in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 20 Oct 2010, 10:35 AM -
doComponentLayout listener?
By mitchellsimoens in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 13 Sep 2010, 9:12 AM -
DoComponentLayout broken in .94?
By gcallaghan in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 10 Sep 2010, 7:07 PM -
doLayout() vs doComponentLayout()
By cabennett85 in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 2 Aug 2010, 9:09 PM


Reply With Quote