thaliproject / postcardapp

A sample app to demonstrate how to build Thali applications
MIT License
22 stars 5 forks source link

Prevent textarea from scrolling up view in iOS WKWebView when editing #103

Closed deadlyfingers closed 8 years ago

deadlyfingers commented 8 years ago

Linked to issue #94

deadlyfingers commented 8 years ago

Will try adding cordova keyboard config values to see if that works - https://cordova.apache.org/docs/en/5.4.0/guide/platforms/ios/config.html

<preference name="KeyboardDisplayRequiresUserAction" value="false" />
<preference name="HideKeyboardFormAccessoryBar" value="false" />
<preference name="KeyboardShrinksView" value="true" />

NB: Also have to add the keyboard plugin - https://www.npmjs.com/package/cordova-plugin-keyboard

<plugin name="cordova-plugin-keyboard" spec="~1.1.3" />
deadlyfingers commented 8 years ago

As only iOS 9 devices support the new WKWebView Cordova plugin it would be good to add a fallback handler for iOS 8 devices that will be on UIWebView.

deadlyfingers commented 8 years ago

Related Cordova issues:

https://issues.apache.org/jira/browse/CB-5641?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20iOS%20ORDER%20BY%20priority%20DESC

https://issues.apache.org/jira/browse/CB-7297?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20iOS%20ORDER%20BY%20priority%20DESC

Related posts: http://stackoverflow.com/questions/13529554/prevent-scrolling-on-keyboard-display-ios-6/34636736#34636736