1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Answers
    4
    Vote Rating
    3
    matfin is on a distinguished road

      0  

    Default Unanswered: Animating the position of an Ext.Tab.Panel

    Unanswered: Animating the position of an Ext.Tab.Panel


    Hi everyone,

    It is a requirement for a project I am working on using Sencha Touch 2 that the Ext.Tab.Panel we have sitting on the left hand side of the screen is moved and animated to the right hand side of the screen as a Panel is rendered into view.

    I'm wondering has anyone succesfuly put something like this together and wether it is supported. I'd like to be able to cleanly implement something like this.

    Thanks,

    Matt

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Answers
    3540
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The whole tab panel or just the tab bar is on the left and you want to animate it to the right?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Answers
    4
    Vote Rating
    3
    matfin is on a distinguished road

      0  

    Default


    Hey,

    I'm currently using the Tab panel's setTabBarPosition() function to move the tab bar from left to right and vice versa as the code below shows:

    Code:
    mainNavChange: function(container, newvalue, oldvalue, options){
            switch(newvalue.xtype){
                case 'playerspanel':{
                    this.getMain().setTabBarPosition('right');
                    break;
                }
                case 'carspanel':{
                    this.getMain().setTabBarPosition('right');
                    break;
                }
                case 'infopanel': {
                    this.getMain().setTabBarPosition('right');
                    console.log('Setings panel hit!');
                    break;    
                }
                default:{
                    this.getMain().setTabBarPosition('left');
                    break;    
                }
            }
        },
    This code is sitting inside the Main.js controller of the app.

    Thanks,

    Matt

Thread Participants: 1

Tags for this Thread