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.
-
Sencha User
Titlebar auto-resize infinite loop
REQUIRED INFORMATION
Sencha Touch version tested:
Browser versions tested against:
- Safari 5.1.7
- Mobile Safari iOS 5.1.1
- Google Chrome 19.0.1whatever
DOCTYPE tested against:
Description:
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:
-
Boiled it down to this minimal testcase:
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
});
The issue is the titlebar has to do size checking but it shouldn't have a run away like that.