Michael Crook
Michael Crook

Reputation: 1535

Cordova - IOS webview is moving

weird issue.. On Android my webview is static (i.e. I cannot move the app up and down) but on IOS I can move the entire webview up and down (therefore causing the header at the top to move up and down which is a bummer :()

I need the webview to not move up and down so my header doesn't move as the webview does... it works find on Android :(

Upvotes: 1

Views: 929

Answers (1)

Michael Crook
Michael Crook

Reputation: 1535

Sombody else asked the question but used correct terminology, the issue is that webviewbounce wasn't disabled for IOS.. https://stackoverflow.com/a/18799560/1332999

Ashis Kumar's (correct but not marked answered) answer:

Try using below one in your config.xml,

If you are using it for Android, then use

<preference name="disallowOverscroll" value="true" />

<preference name="webviewbounce" value="false" />

And for IOS, use like

<preference name="DisallowOverscroll" value="true" />

<preference name="webviewbounce" value="false" />

Hope this helps you.

Upvotes: 3

Related Questions