-
15 Jun 2012 6:55 AM #1
Titlebar auto-resize infinite loop
Titlebar auto-resize infinite loop
REQUIRED INFORMATION
Sencha Touch version tested:- Sencha Touch 2.0.1
Browser versions tested against:- Safari 5.1.7
- Mobile Safari iOS 5.1.1
- Google Chrome 19.0.1whatever
DOCTYPE tested against:- Correct!
Description:- See this: http://www.senchafiddle.com/#M9nnB
Steps to reproduce the problem:- Please check the previous link
The result that was expected:- Resize event shouldn't be fired forever
The result that occurs instead:- Resize event IS fired forever
Test Case:
http://www.senchafiddle.com/#M9nnB
HELPFUL INFORMATION
See this URL for live test case: http://www.senchafiddle.com/#M9nnB
Possible fix:- Use a toolbar instead
-
15 Jun 2012 9:36 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Boiled it down to this minimal testcase:
The issue is the titlebar has to do size checking but it shouldn't have a run away like that.Code:Ext.create('Ext.Container', { fullscreen : true, items : [ { xtype : 'titlebar', /* try toolbar instead! ;) */ docked : 'top', items : [ { xtype : 'button', text : 'Looooooooong string!', listeners : { resize : function () { console.log('resize'); } } } ] } ], width : 200 });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.
You found a bug! We've classified it as
TOUCH-3010
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote