You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Brad Pritchard (JIRA)" <ji...@apache.org> on 2013/10/05 02:46:43 UTC

[jira] [Closed] (CB-4940) iOS7 Keyboard Appearance Resizes View Frame

     [ https://issues.apache.org/jira/browse/CB-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brad Pritchard closed CB-4940.
------------------------------

    Resolution: Not A Problem

I created a new skeleton project using Sencha Touch 2.3, and wrapped it into a new skeleton project using Phonegap 3.0.

I modified the skeleton Sencha view (/app/view/Main.js) and added in a long form panel (longer than half the screen, which is what shows when the keyboard appears).

When running via Xcode and an iOS 7 simulator, the keyboard pops up when tapping a form field. The screen shrinks, and the correct field is scrolled to.

In this skeleton project, however, the WebView does NOT shrink. Thus, it appears that the previously-reported problem was either fixed in Sencha Touch 2.3, or my particular application has other constraints that are causing this issue (more likely).

I'm closing this issue, as there appears to be no problem with the Phonegap implementation.

> iOS7 Keyboard Appearance Resizes View Frame
> -------------------------------------------
>
>                 Key: CB-4940
>                 URL: https://issues.apache.org/jira/browse/CB-4940
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.0.0
>         Environment: XCode 5, iOS 7, Phonegap 3, Sencha Touch 2.1
>            Reporter: Brad Pritchard
>         Attachments: iOS Simulator Screen shot Sep 27, 2013 2.47.47 PM.png
>
>
> This is a similar issue to CB-3020, albeit slightly different.
> Our situation is this: we have a PhoneGap 3.0 project, using Sencha Touch as the view framework. Our views are housed within a Sencha Touch TabPanel, which shows tabs docked at the bottom of the viewport.
> Since we do not want the screen to shrink, we are setting KeyboardShrinksView to false in our config.xml.
> When an input receives focus, we are seeing that iOS 7 resizes the viewport to be the size of the screen minus the height of the keyboard. Since the TabPanel is absolutely positioned with a bottom of 0, the tabs are fixed right above the keyboard.
> We would like the webView to remain the same size, and the focused input to scroll into view when clicked. The assumption here would be that either:
> # The viewport needs to be re-expanded after the keyboard shows to get it back to the height of the screen (and thus pushing the tabs "below" the keyboard), or
> # The webView and/or scrollView need to be manipulated after the keyboard shows, so that the content of the app (namely the TabPanel) scrolls off the bottom of the shrinked viewport, and thus out of the way.



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