[ https://issues.apache.org/jira/browse/CB-5755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866982#comment-13866982 ]
Shazron Abdullah edited comment on CB-5755 at 1/9/14 8:04 PM: -------------------------------------------------------------- Test with the latest Cordova version 3.3.0 and the keyboard plugin: org.apache.cordova.keyboard Older versions prior to 3.x will not be back-patched. was (Author: shazron): Test with the latest Cordova version 3.3.0 and the keyboard plugin: org.apache.cordova.keyboard Older versions will not be back-patched. > keyboard-plugin > --------------- > > Key: CB-5755 > URL: https://issues.apache.org/jira/browse/CB-5755 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > 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.1.5#6160)