Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Entire app moves on input focus on iOS 8 #2256

Closed
lukechilds opened this issue Sep 22, 2014 · 3 comments
Closed

Bug: Entire app moves on input focus on iOS 8 #2256

lukechilds opened this issue Sep 22, 2014 · 3 comments

Comments

@lukechilds
Copy link

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.

@mhartington
Copy link
Member

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

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

@lukechilds
Copy link
Author

Woops, that was it, thanks Mike!

@ulesta
Copy link

ulesta commented Oct 3, 2016

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);

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants