IBM Worklight 6.1 - iOS 7 (iPad) WebView extending height to size of split keyboard

核能气质少年 提交于 2019-12-13 06:49:14

问题


I am wondering if anyone has come across the following issue and if there is a solution for Worklight 6.1 on iOS 7.1.

When I bring up the software keyboard, it resizes the web view indefinitely. This means that when I scroll the view, it scrolls past the body content and a black underlay is displayed. The black section is the same height and width as the keyboard.

To reproduce: I have created a standard Worklight project and added a simple text field to the default index.html page. Focus the search field and invoke the split keyboard and then scroll the page up; you will see the black section. The page continues to scroll even after the keyboard is dismissed.

There appear to be similar posts about this defect in Cordova 3.1:

  • How to fix keyboard issues with Cordova 3.1 on iOS?
  • Phonegap: Keyboard changes window height in iOS 7

There are various fixes proposed, and I have tried some of the simpler ones without success. I want to know if there is an official fix in Worklight for this. I do see there appears to be a new keyboard plugin:

http://shazronatadobe.wordpress.com/2013/10/15/cordova-ios-and-ios-7-support/


回答1:


Go in your iPad native folder and open config.xml. In widget list, add this:

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


来源:https://stackoverflow.com/questions/23499411/ibm-worklight-6-1-ios-7-ipad-webview-extending-height-to-size-of-split-keybo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!