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

Rafael Schettino commented on CB-4862:
--------------------------------------

I fixed this issue on my project by javascript.
On index.html, I added onResize function on the body tag:
{code:xml}
<body onResize="onResize();">
{code}
On my global script file, I added this code:
{code:title=Bar.javaScript}
function onResize(){
        var ios7 = (device.platform == 'iOS' && parseInt(device.version) >= 7);
        if (ios7){
                var height = $('body').height();
                if (height < 350){ // adjust this height value conforms to your 
layout
                        $('.myBottomMenu').hide();
                }
                else {
                        $('.myBottomMenu').show();
                }
        }
}
{code}

> ios 7 keyboard resizes the page even with KeyboardShrinksView set to false
> --------------------------------------------------------------------------
>
>                 Key: CB-4862
>                 URL: https://issues.apache.org/jira/browse/CB-4862
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.8.0
>         Environment: ipod 5th gen ios 7 and simulator for ios 7
>            Reporter: Jake Williams
>            Assignee: Shazron Abdullah
>              Labels: ios7
>
> We have a page with a fixed footer and some inputs.  In previous ios versions 
> the page would be pushed up when an input was focused and the keyboard came 
> up.  In ios 7, the page height is reduced to the available space after the 
> keyboard appears and the footer covers the input (depends on the position of 
> the footer, but it does happen sometimes).  There is also a problem where the 
> input could be beneath the keyboard if you have multiple inputs and you use 
> next/previous to move between them.



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

Reply via email to