Results 1 to 2 of 2

Thread: iOS 7 issue with iPad in landscape mode

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default 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);
    };

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451

    Default

    Thank you for posting your workaround for the community.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •