Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    9
    Vote Rating
    0
    SargTeX is on a distinguished road

      0  

    Default HBox animation issue

    HBox animation issue


    Hey people.

    Required Information

    Ext version tested
    Sencha Touch 2.1.0 (according to version.txt)

    Browser versions tested against
    • Google Chrome (18.0.1025.168 (Entwickler-Build 134367 Linux) Ubuntu 10.04)

    Doctype tested against
    ---

    Description
    I got a container with HBox Layout.
    The container contains 3 items: One titlebar (docked to the top) with a button, a panel with some html content and one panel named as the "Navigation panel".
    With the button on titlebar pressed, the Navigation Panel shall slide into the screen and take (according to HBox Layout) some of the left part of the screen (width: 200).
    After the button was pressed again, the navigation panel shall slide away from the screen (using hide() method) and release the space for the other panel.

    The result that was expected
    • The navigation panel shall slide from it's position to the left side outside of the screen (method: navigationPanel.hide({type: 'slide', direction: 'left'});

    The result that occurs instead
    • The navigation panel gets slided out, but the animation starts at the right side of the screen instead from the current position of tthe panel.

    Steps to reproduce the problem
    • Slide a container that uses less than 100% of the screen width from an hbox outside of the screen using the hide() method OR
    • view my website at http://mobiletherium.spinshare.de/hboxissue and click at the button on the top left and see what happens.

    Test Case
    Code:
    Ext.define('MegatheriumProject.view.MainContainer', {    extend: 'Ext.Container',
        alias: 'widget.maincontainerview',
        requires: ['Ext.Container', 'Ext.TitleBar'],
        
        
        config: {
            layout: {
                type: 'hbox'
            },
            items: [
                {
                    xtype: 'titlebar',
                    title: 'Megatherium',
                    docked: 'top',
                    items: [
                        // the button
                    ]
                },
                {
                    xtype: 'panel',
                    html: 'I am on the left side of the screen',
                    width: 200,
                    hidden: true
                },
                {
                    xtype: 'panel',
                    html: 'Hello World!',
                    align: 'right'
                }
            ]
        }
    
    // some listeners aso
    });

    Showing/hiding the navigation panel is done by this:
    Code:
            if (!this.navigationPanelVisible) this.getNavigationPanelView().show({type: 'slide', direction: 'right'});
            else this.getNavigationPanelView().hide({type: 'slide', direction: 'left'});
            this.navigationPanelVisible = !this.navigationPanelVisible;

    Helpful information

    See this URL for live test case: http://mobiletherium.spinshare.de/hboxissue

    Debugging already done:
    No errors where thrown out

    Operating system
    Linux (see browser information for more details)


    Any help? Is this a bug or am I doing something wrong?

    Best greetings,
    SargTeX

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


    If you are asking for help then you need to post in Q&A forum. If you are reporting a bug, I need a fully working test case so I can reproduce and we can fix.
    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.

Thread Participants: 1

Tags for this Thread