Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1297 in a recent build.
  1. #11
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Quote Originally Posted by btoc007 View Post
    Cannot go back to the first tab
    Not sure what you mean by going back. In this example you are on the first tab already.

    Sencha Inc

    Jamie Avins

    @jamieavins

  2. #12
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Personally, I'd configure the 'Welcome User' and I'd have a custom applyHtml method which would check that flag. This way it's checked any time Html changes and not just at initialization.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #13
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Sorry, this should be better:

    Code:
    Ext.define('Ext.tabpanel.override', {
        override: 'Ext.tab.Panel',
        doTabChange: function(tabBar, newTab) {
            var oldActiveItem = this.getActiveItem(),
                newActiveItem;
            this.setActiveItem(tabBar.indexOf(newTab));
            newActiveItem = this.getActiveItem();
            return oldActiveItem !== newActiveItem;
        }
    });

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #14
    Sencha User
    Join Date
    Oct 2011
    Posts
    12
    Vote Rating
    0
    btoc007 is on a distinguished road

      0  

    Default


    That was a simple example, but there are cases where many items might be different. I have done both approaches, but to tell the truth I have felt using initialize and assigning components to the "this" scope leads to better encapsulation and easier invocation of methods referencing said components.
    Is there a performance overhead with it or is it just a preferred coding practice?

  5. #15
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    It doesn't lead to handling anything dynamically since it is only invoked once at instantiation. It can lead to performance issues if these classes are then extended. Extension of classes like this in general becomes very difficult.

    Sencha Inc

    Jamie Avins

    @jamieavins