Continuing the discussion from
Disable scroll ionic2 ios9 Not working:
Any luck? I’m having the same problem here.
doesn’t seem to work:
When I focus on an input field, keyboard shows up, but should not scroll view.
My system information:
Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.3.0
Xcode version: Xcode 7.2.1 Build version 7C1002
Would you open an issue for this. I’m not 100% sure where we stand on this, so it would be nice to discuss this.
It seems like your DOM elements could be moving and not the whole UIScrollView. Haven’t tried this plugin yet but does your header remain in its place and only the DOM scrolls or the whole UI shifts?
Read this for more clarification :
GitHub - ionic-team/ionic-plugin-keyboard: Ionic Keyboard Plugin for Cordova
As mentioned there:
Prevent the native UIScrollView from moving when an input is focused. The telltale sign that this is happening is the top of your app scrolls out of view (if using Ionic, your header bar will disappear).
As a follow-up, if i use Keyboard.disableScroll(true), it still runs on Android because it has not been implemented for it
From the linked thread:
I did find the answer in the end, turns out that padding is applied to the scroll area of the content when the keyboard opens, i found that the only way to fix this is to apply a css class to fix padding to 0px on the content class. which i can not remember what the class is called as i no longer use the slides component in this way. But you will see a large amount of padding when inspecting the elements when opening a keyboard on phone. this will pin point what to add padding 0px to. …
Looks like a solution has been found.
Oh and if Keyboard.disableScroll(true) does work on android and not on iOS, then perhaps the ionic team can look into it. Why don’t you open up an issue on github?
@mhartington, @adrianteh: This issue of the keyboard scrollAssist leaving unwanted padding on the content view is being collected to https://github.com/driftyco/ionic/issues/5432
updated the original thread with a workaround that I’ve had some success with.
Still the same problem with Beta.7?
I have the same issue right now.