1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    17
    Vote Rating
    1
    rutzmic is on a distinguished road

      0  

    Default Ext.fx.layout.Card ChromeMobile

    Ext.fx.layout.Card ChromeMobile


    Hi,

    i was wondering, why is Ext.fx.layout.Card forced to type = "scroll" on ChromeMobile?

    I removed the following condition in Ext.fx.layout.Card`s Constructor (ST 2.1)
    Code:
    else if (type === 'slide' && Ext.browser.is.ChromeMobile) {
        type = 'scroll';
    }
    and there seems to be no issue with ChromeMobile on my Samsung Galaxy S2 (Android 4.0.4, latest Chrome from Google Play).

    It would be nice to use animations on Chrome, especially for the NavigationView which uses Card Layout and Card FX by default.

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,547
    Vote Rating
    872
    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


    Chrome has had bugs so to support every version of Chrome the anims may have to be disabled. Also, I wouldn't edit a ST class, would make it hard to upgrade to a newer ST version, instead override the method.
    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
    Jan 2012
    Posts
    17
    Vote Rating
    1
    rutzmic is on a distinguished road

      0  

    Default


    Thank you for your reply Mitchel.
    I will put my changes in a separate override Class if i use it for production of course.
    But can you tell which Versions of ChromeMobile had this bugs you mentioned?
    So i could disable the animations only until a specific Version as there are definitly no problems with the current iOS and Android Versions anymore.
    Thanks in advance!

Thread Participants: 1

Tags for this Thread