iOS 7 input elements moving fixed positioned elements

后端 未结 4 747
长发绾君心
长发绾君心 2020-12-12 22:59

I\'m trying to recompile an app for iOS 7, since nothing of the old one works so far. One of the many problems is that I\'m using some inputs inside UIWebViews. Text inputs,

4条回答
  •  一个人的身影
    2020-12-12 23:34

    In our case this would fix itself as soon as user scrolls. So this is the fix we've been using to simulate a scroll on blur on any input or textarea:

    $(document).on('blur', 'input, textarea', function () {
        setTimeout(function () {
            window.scrollTo(document.body.scrollLeft, document.body.scrollTop);
        }, 0);
    });
    

提交回复
热议问题