1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default doComponentLayout still broken ?

    doComponentLayout still broken ?


    with this code for example :
    Code:
    onReady: function() {
        panelBar = new Ext.Toolbar({
             id    : 'p_botBar'
            ,dock  : 'bottom'
            ,layout: { pack:'center' }
            ,items : [{ text:'btn' }]
        });
        panel = new Ext.Panel({
             id         : 'p'
            ,dockedItems: [ panelBar ]
            ,fullscreen : true
            ,layout     : 'card'
            ,items      : [{
                 id       : 'p_card1'
                ,html     : '<div style="color:#fff;background:#333;height:100%;">Click to hide the bottom bar</div>'
                ,listeners: {
                    afterRender: function(){
                        this.mon(this.el, {
                            tap: function(){
                                panelBar.hide();
                                panel.doComponentLayout();
                            },
                            scope: 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 also have my doubts whether its still broken but not sure,

  3. #3
    Ext User
    Join Date
    Aug 2010
    Location
    Sweden, Västerås
    Posts
    85
    Vote Rating
    0
    Kask is on a distinguished road

      0  

    Default


    It can still be fixed with the panelBar.rendered = false trick .... what I dont understand is why this code doesnt work.
    The toolbar isnt shown again ...

    Code:
    Ext.setup({
        onReady: function () {
            panelBar = new Ext.Toolbar({
                id: 'p_botBar'
                , dock: 'bottom'
                , layout: { pack: 'center' }
                , items: [{ text: 'btn'}]
            });
            panel = new Ext.Panel({
                id: 'p'
                , dockedItems: [panelBar]
                , fullscreen: true
                , layout: 'card'
                , items: [{
                    id: 'p_card1'
                    , html: '<div style="color:#fff;background:#333;height:100%;">Click to hide the bottom bar</div>'
                    , listeners: {
                        afterRender: function () {
                            this.mon(this.el, {
                                tap: function () {
                                    if (panelBar.isVisible()) {
                                        panelBar.hide();
                                        panelBar.rendered = false;
                                        panel.doComponentLayout();
                                    }
                                    else {
                                        panelBar.show();
                                        panel.doComponentLayout();
                                    }
                                },
                                scope: this
                            });
                        }
                    }
                }]
            });
        }
    });

  4. #4
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default


    same problem with 0.97 :
    the trick (panelBar.rendered = false) is always required ( for hide() and show() )

Similar Threads

  1. Replies: 10
    Last Post: 4 Dec 2011, 10:18 PM
  2. doComponentLayout listener?
    By mitchellsimoens in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Sep 2010, 9:12 AM
  3. DoComponentLayout broken in .94?
    By gcallaghan in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 10 Sep 2010, 7:07 PM
  4. doLayout() vs doComponentLayout()
    By cabennett85 in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 2 Aug 2010, 9:09 PM
  5. UI broken sometimes
    By Kannabismus in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Nov 2007, 3:18 PM

Thread Participants: 2

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