sivakamasundari created CB-5755: ----------------------------------- Summary: keyboard-plugin Key: CB-5755 URL: https://issues.apache.org/jira/browse/CB-5755 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 3.3.0, 2.7.0 Environment: xcode 5 cordova 2.7 and 3.3.0 ios 5,6,7 Reporter: sivakamasundari Fix For: 3.3.0, 2.7.0
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)