You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/09/18 02:49:32 UTC
ios commit: [CB-3020] HideKeyboardFormAccessoryBar and
KeyboardShrinksView show white bar instead of removing it
Updated Branches:
refs/heads/master 66e239972 -> 4b823bac4
[CB-3020] HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/4b823bac
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/4b823bac
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/4b823bac
Branch: refs/heads/master
Commit: 4b823bac4e6b03f7630cf435a9dd084933618a0a
Parents: 66e2399
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Sep 17 17:49:16 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Sep 17 17:49:28 2013 -0700
----------------------------------------------------------------------
CordovaLib/Classes/CDVViewController.m | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4b823bac/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index e994f35..7b2f3a1 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -145,7 +145,9 @@
CGRect newFrame = self.view.bounds;
if (showEvent) {
newFrame.size.height -= keyboardFrame.size.height;
- self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0);
+ if (!(IsAtLeastiOSVersion(@"7.0"))) {
+ self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0);
+ }
} else {
self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
}
@@ -496,6 +498,11 @@
for (UIView* view in window.subviews) {
if ([[view description] hasPrefix:@"<UIPeripheralHostView"]) {
for (UIView* peripheralView in view.subviews) {
+ // hides the backdrop (iOS 7)
+ if ([[peripheralView description] hasPrefix:@"<UIKBInputBackdropView"]) {
+ [[peripheralView layer] setOpacity:0.0];
+ }
+
// hides the accessory bar
if ([[peripheralView description] hasPrefix:@"<UIWebFormAccessory"]) {
// remove the extra scroll space for the form accessory bar