Results 1 to 3 of 3

Thread: Tab Panel does not have cardSwitchAnimation config

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Shanghai
    Posts
    71
    Answers
    1
    Vote Rating
    3
      0  

    Default Tab Panel does not have cardSwitchAnimation config

    I want create a tab panel with no animation when i change the tab.

    You know Sencha-touch 1.1, TabPanel have cardSwitchAnimation config, and i can set cardSwitchAnimation: false, but at Sencha-touch2.0-pr2, does not have this config, and i have tried many metod, for example : Ext.define('BottomTabs', {
    extend: 'Ext.tab.Panel',
    config: {
    activeItem: 1,
    layout: {
    animation: null
    }

    ...
    }
    })

    still no use and error message is: "Cannot call method 'setReverse' of null".
    caused by : " this.getLayout().getAnimation().setReverse(reverse);"


    1. I don't know why you delete this config, and how can i create a tab panel with no animation when i change the tab?

    2. And there is a bug:
    at kitchensink/interface/Bottom Tabs:
    when card switching the animation always "slide left".


    Thank you.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The config was removed and placed onto the layout config as this is where it belongs.

    That being said, we shouldn't be forcing people to use animations so I would classify this as a bug.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Shanghai
    Posts
    71
    Answers
    1
    Vote Rating
    3
      0  

    Default

    Thank you very much.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •