View Full Version : [INFOREQ] HBox animation issue

18 Nov 2012, 4:09 AM
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 http://mobiletherium.spinshare.de/hboxissue 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: 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,

19 Nov 2012, 12:44 PM
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.