[ https://issues.apache.org/jira/browse/CB-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956827#comment-13956827 ]
Cedric LOMBARDOT commented on CB-6358: -------------------------------------- I've fixed the header problem doing : #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) - (void)shrinkViewKeyboardWillShow:(NSNotification*)notif { if (!_shrinkView) { return; } _savedWebViewFrame = self.webView.frame; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.viewController.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = _savedWebViewFrame; CGFloat actualKeyboardHeight = (keyboardFrame.size.height - _accessoryBarHeight); newFrame.size.height -= actualKeyboardHeight; self.webView.frame = newFrame; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.1")) { self.webView.scrollView.contentInset = UIEdgeInsetsMake(_accessoryBarHeight, 0, 0, 0); } if (self.disableScrollingInShrinkView) { self.webView.scrollView.scrollEnabled = NO; } } > [IOS7.1] Keyboard plugin shinkView with or without > disableScrollingInShrinkView scroll the main view and remove my header on IOS > 7.0 its OK > ------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CB-6358 > URL: https://issues.apache.org/jira/browse/CB-6358 > Project: Apache Cordova > Issue Type: Bug > Components: iOS, Plugins > Affects Versions: 3.4.0 > Environment: IOS 7.1 Cordova 3.4 > Reporter: Cedric LOMBARDOT > > In my webview, i have a top fixed header and one scrollable div with the > form. When i focus a field with > Keyboard.hideFormAccessoryBar(true); > Keyboard.shrinkView(true); > Keyboard.disableScrollingInShrinkView(true); > in ios7.0 my header is still visible. In io7.1 my header is scrolled out. > I think its also related to my second problem, when the webview is closed if > i have an element in bottom:0 it was displayed out of the frame. Seems the > webView size increase each time i open the keyboard -- This message was sent by Atlassian JIRA (v6.2#6252)