1. #1
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default Remove a dock in kitchen sink

    Remove a dock in kitchen sink


    I am developing and app which is structured as the kitchen sink demo.
    I have requirement, when Im using a phone, I should only have 1 dock at the top. But in the current kitchen sink demo. If a inner card is a nested list. 2 docks will appear in the top.

    In previous version of sencha I removed the main dock. I did this using this simple code.

    if(Ext.platform.isPhone) {
    if(this.navigationBar.isVisible()) {
    this.navigationBar.hide();
    this.doComponentLayout();
    }
    }
    The above code was inserted in the onlistcahnge event of the index.js in kitchen demo. And this worked.

    Now in the new 0.94 demo

    I inserted the same code in the 'onNavPanelItemTap' function.
    Here the dock gets removed but the card does not resize to fill the remaining space of the old dock.
    I think this.doComponentLayout(); isnt working.
    How can I solve this??

  2. #2
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    I still cant get this done even in the 0.95 build.
    I noticed that the card resize when I switch on/off the debug console in chrome. Some resize event is getting firing i guess. I tried the doLayout and doComponentLayout and both seem to do nothing.

Similar Threads

  1. How to add class in Kitchen Sink 0.94?
    By blessan in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 9 Sep 2010, 9:18 PM
  2. [FIXED] Files not present in the Kitchen sink demo
    By mithun2005 in forum Sencha Touch 1.x: Bugs
    Replies: 5
    Last Post: 8 Sep 2010, 11:23 AM
  3. add new panel in kitchen sink demo
    By gimox in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 6 Sep 2010, 5:30 AM
  4. Ajax Data Kitchen Sink demo Broken?
    By RobertG in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 5 Sep 2010, 10:36 PM
  5. Question to Cards of Kitchen Sink/ Events Example
    By msinn in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 12:53 PM
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi