ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Bug: Entire app moves on input focus on iOS 8

Open lukechilds opened this issue 12 years ago • 3 comments

When I selected an input in iOS 7 the keyboard would pop up and the input would scroll to be just above the keyboard. In iOS 8 it looks like the entire webview jumps down before animating up and temporarily showing a black bar at the top, it looks pretty awful.

iOS8 input focus

The example uses the ionic tabs starter template with some inputs dropped into the 'Dash' page.

lukechilds avatar Sep 22 '14 11:09 lukechilds

Just checking, have you disabled scrolling with the keyboard plugin?

https://github.com/driftyco/ionic-plugins-keyboard#keyboarddisablescroll

mhartington avatar Sep 22 '14 13:09 mhartington

Woops, that was it, thanks Mike!

lukechilds avatar Sep 22 '14 13:09 lukechilds

In my case, disabling Keyboard Scroll was not a viable solution since I wanted to scroll on input focus.

I experimented and figured that if I changed the ion-content to an ion-scroll the issue would disappear. I took it once step further an applied the attribute overflow-scroll="true" to the ion-content and voila, issue was fixed.

I noticed that the would be a pain to apply all over the place so I just disabled jsScrolling by default by doing this in my angular config block: $ionicConfigProvider.scrolling.jsScrolling(false);

ulesta avatar Oct 03 '16 21:10 ulesta