1. #11
    Sencha User
    Join Date
    Sep 2007
    Posts
    18
    Vote Rating
    0
    jhargett is on a distinguished road

      0  

    Default


    I just had a need for this, so I followed Animal's advice and added a dblclick listener to the tab. Then I just call a function that collapses all panels so that the editor area is maximized.

    PHP Code:
                this.edit = new Ext.TabPanel({
                    
    region'center'
                
    });

                
    this.edit.on('render', function(tabpanel){
                    
    Ext.EventManager.on(tabpanel.getEl(), 'dblclick', function(e){
                        var 
    target e.getTarget();
                        var 
    ele Ext.get(target);
                        if (
    ele.hasClass('x-tab-strip-text')){
                            if (!
    this.edit.maximized){
                                
    this.collapseAllPanels();
                                
    this.edit.maximized true;
                            } else {
                                
    this.expandAllPanels();
                                
    this.edit.maximized false;
                            }
                        }
                    }, 
    this);
                }, 
    this); 

  2. #12
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default


    Hi All,
    I'm using extjs 4.
    When I remove a tab from tabpanel and add it to a window
    I get exception since el is null:

    addCls : function(cls) {
    var me = this,
    el = me.rendered ? me.el : me.protoEl;


    el.addCls.apply(el, arguments);
    return me;
    },

    Any idea?

    thanks in advance
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

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