Is there a bug in the new iOS 7.1 minimal-ui viewport setting?

3 Solutions Collect From Internet About “Is there a bug in the new iOS 7.1 minimal-ui viewport setting?”

I had same problem with iPhone5+ios7.1+minimal-ui. This code successfully fixes this trouble.

window.addEventListener('scroll', function () {
    // Do not scroll when keyboard is visible 
    if (document.activeElement === document.body && window.scrollY > 0) {
        document.body.scrollTop = 0;
    }
}, true);

check out this post: Gray area visible when switching from portrait to landscape using iOS 7.1 minimal-ui

this fixed it for me:

window.scrollTo(0,0);

setting every time a resize event occurs.

 $(window).resize(function(){
  document.body.scrollTop = 0;
})