iOS 7 input elements moving fixed positioned elements

后端 未结 4 738
长发绾君心
长发绾君心 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:27

    I ran across exactly the same problem & gave up after two days of experimenting. It seems that: a) all bottom-fixed elements go upwards so that their bottom offset is relative to the top edge of the keyboard c) all top-fixed elements stay in their original position (do not move upwards as they used to) - note that top-absolute elements work ok.

    The only solution I found was to have a custom iPad stylesheet that replaces all fixed elements with absolute elements, sets the css bottom property to auto and uses top instead

提交回复
热议问题