You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tom Wilson (JIRA)" <ji...@apache.org> on 2013/11/15 00:33:22 UTC

[jira] [Commented] (CB-5396) UiWebView doesn't resize when Keyboard Show when DisallowScroll is True

    [ https://issues.apache.org/jira/browse/CB-5396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13823109#comment-13823109 ] 

Tom Wilson commented on CB-5396:
--------------------------------

I created a test 3.2 cordova ios project and installed the Keyboard plugin.

The webview is not getting resized correctly...

Screenshot of safari
http://imgur.com/m3Yb5GJ

When i step through the code in the debugger, it says it's resizing to the correct size, but it doesn't take and it shifts the whole webview up the height of the keyboard.

Test app here...
https://github.com/twilly86/CordovaKeyboardTest

Is this how you set keyboard setting?

window.Keyboard.shrinkView(true);
window.Keyboard.hideFormAccessoryBar(true);
window.Keyboard.disableScrollingInShrinkView(true);

I also set these in config.xml and it looked like they were initialized correctly by the plugin.

I'd expect the webview to be resized to (height)-(keyboard height)-(keyboard accessory height)

PS: I tested this with disableScrollingInShrinkView = false and it works very well with the webview showing behind the keyboard, however I am using IScroll for scrolling and need this since it works best with fixed header/footer.

This was working well on phonegap 3.1.

PSS: Are there any plans to support native ui by adding a native header and footer similar to AppGyver?  AppGyver looks interesting but it removes you from using xcode/eclipse which hurts when bugs pop up and you need to use the debugger.  The keyboard/webview resizing has caused me 90% of my pain in developing phonegap apps and if we could streamline this to work with fixed header/footers, i'd be a happy man :)

Thanks!

> UiWebView doesn't resize when Keyboard Show when DisallowScroll is True
> -----------------------------------------------------------------------
>
>                 Key: CB-5396
>                 URL: https://issues.apache.org/jira/browse/CB-5396
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.2.0
>         Environment: cordova 3.2 with keyboard plugin.
>            Reporter: Tom Wilson
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)