-
18 Nov 2012 4:09 AM #1
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
-
19 Nov 2012 12:44 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote