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
    Sencha User
    Join Date
    Sep 2011
    Posts
    8
    Vote Rating
    0
      0  

    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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1367
      0  

    Default

    Thank you for posting your workaround for the community.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    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
  •