You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/05/05 23:37:18 UTC

[jira] [Updated] (CB-5755) keyboard-plugin

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

Shazron Abdullah updated CB-5755:
---------------------------------

    Component/s:     (was: iOS)
                 Plugin Keyboard

> keyboard-plugin
> ---------------
>
>                 Key: CB-5755
>                 URL: https://issues.apache.org/jira/browse/CB-5755
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Keyboard
>    Affects Versions: 2.7.0, 3.3.0
>         Environment: xcode 5 cordova 2.7 and 3.3.0 ios 5,6,7
>            Reporter: sivakamasundari
>              Labels: keyboard-plugin
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> I just tested Cordova 2.7 with iOS app and experienced several keyboard issues.
> --------------------------
> Issues:
> 1. All versions: when focus on an input field then whole view is pushed up including navbar.
> 2. iOS5/6: tap on an input field to open keyboard, then a black gap is briefly displayed at top of screen before keyboard pushes whole view up (is it status bar?)
> 3. iOS7: there is no black gap like #2 issue, but there are other issues:
> - I still see accessories bar before it's removed (hidden).
> - Keyboard is translucent then I can see darker background in the space where current view is pushed up.
> ----------------------------
> I made below changes in config.xml
> <preference name="KeyboardShrinksView" value="false"/>
> working fine in ios 5 and 6 only
> <preference name="KeyboardShrinksView" value="true"/>
> working fine in ios 7 only
> Is there any solution which can help to fix this issues in all ios version..????
> Also tried the below code same output :(
> - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
> {
>     [super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
>     if (self.webView){
>         CGRect newFrame = self.webView.bounds;
>         //NSLog(@"%f" , newFrame.size.height);
>         
>         NSString *JS =  [NSString stringWithFormat:@"viewport = document.querySelector('meta[name=viewport]'); viewport.setAttribute('content', 'user-scalable=no, initial-scale=1.0, maximum-scale=1, minimum-scale=1, width=device-width, height=%d,  target-densitydpi=device-dpi');",  (int) newFrame.size.height*1 ];
>         
>         [self.webView stringByEvaluatingJavaScriptFromString:JS];
>     }
>     
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)