Results 1 to 2 of 2

Thread: HBox animation issue

    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
    Vote Rating

    Default 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

    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 and click at the button on the top left and see what happens.

    Test Case
    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:
            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:

    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,

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

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