Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default Tab is activated when close button clicked

    Tab is activated when close button clicked


    See Tabs Example 2.
    When you close tab that is not the active one, it will be activated before its closed.

    stopEvent() should prevent the tab from receiving the click event. but somehow this doesnt work I think.

    PHP Code:
        /** @private */
        
    closeClick : function(e){
            var 
    = {};
            
    e.stopEvent();
            
    this.fireEvent("beforeclose"thiso);
            if(
    o.cancel !== true){
                
    this.tabPanel.removeTab(this.id);
            }
        } 

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    I don't see this behavior. The click event for the close icon would fire first (even if it bubbles) and it removes the tab.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    Hm I really do, try holding your mouse button for a sec when clicking the close button.

  4. #4
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    yeah tried holding the mouse button and it does what u say.

    however.... if you press and hold down your mouse button, is it still considered a click?

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Ahah! That would be a mousedown which goes through this code:

    Code:
        onTabMouseDown : function(e){
            e.preventDefault();
            this.tabPanel.activate(this.id);
        },
    Perhaps that could check the target, and only activate if the original target was not the close button.

  6. #6
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    I guess your totally right
    Nice one.

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