1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    2
    Vote Rating
    0
    ukyo is on a distinguished road

      0  

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

  2. #2
    Ext User
    Join Date
    Oct 2010
    Posts
    2
    Vote Rating
    0
    ukyo is on a distinguished road

      0  

    Default


    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.

  3. #3
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    767
    Vote Rating
    23
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    I'm having the same problem with 0.99. Could you solve it?

Similar Threads

  1. Replies: 10
    Last Post: 4 Dec 2011, 10:18 PM
  2. problem with removeDocked and addDocked in 0.97
    By willi in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 20 Oct 2010, 10:35 AM
  3. doComponentLayout listener?
    By mitchellsimoens in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Sep 2010, 9:12 AM
  4. DoComponentLayout broken in .94?
    By gcallaghan in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 10 Sep 2010, 7:07 PM
  5. doLayout() vs doComponentLayout()
    By cabennett85 in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 2 Aug 2010, 9:09 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar