Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
iOS 7 issue with iPad in landscape mode
We experience the same bug as TOUCH-4917 with the orientation change in Touch 1.1.
However we dont experience that the docked bottom is cut off, this works perfectly.
This is what I did to make a workaround:
Code:
Ext.EventManager.onOrientationChange = function(fn, scope, options) {
var me = this,
orientationEvent = me.orientationEvent;
if (!orientationEvent) {
me.orientationEvent = orientationEvent = new Ext.util.Event();
var onOrientationChange = function(viewport, size) {
Ext.orientation = Ext.Viewport.getOrientation();
orientationEvent.fire(Ext.orientation, size.width, size.height);
//Begin code to fix bug TOUCH-4917
var checkOri = setInterval(function() {
if(window.scrollY === 0) {
clearInterval(checkOri);
} else {
window.scrollTo(0,0);
}
}, 300);
//End code to fix bug TOUCH-4917
};
Ext.Viewport.on('resize', onOrientationChange, this);
}
orientationEvent.addListener(fn, scope, options);
};
-
Thank you for posting your workaround for the community.