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 2014/03/13 19:59:55 UTC

git commit: CB-6219 - Fix by preventing the main keyboard from becoming transparent on iOS 7. (This looked particularly bad on iOS 7.1, where a white background would render the Shift key icons invisible.) Closes #6

Repository: cordova-plugins
Updated Branches:
  refs/heads/master e638d0828 -> ff2600567


CB-6219 - Fix by preventing the main keyboard from becoming transparent on iOS 7. (This looked particularly bad on iOS 7.1, where a white background would render the Shift key icons invisible.) Closes #6


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/ff260056
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/ff260056
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/ff260056

Branch: refs/heads/master
Commit: ff26005678d31df746245b2d7a341e56644d10eb
Parents: e638d08
Author: Andrew Shearer <an...@ashearer.com>
Authored: Wed Mar 12 10:15:03 2014 -0400
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Mar 13 11:58:10 2014 -0700

----------------------------------------------------------------------
 keyboard/src/ios/CDVKeyboard.m | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/ff260056/keyboard/src/ios/CDVKeyboard.m
----------------------------------------------------------------------
diff --git a/keyboard/src/ios/CDVKeyboard.m b/keyboard/src/ios/CDVKeyboard.m
index 1887e69..d3b823a 100644
--- a/keyboard/src/ios/CDVKeyboard.m
+++ b/keyboard/src/ios/CDVKeyboard.m
@@ -204,7 +204,12 @@
                 for (UIView* peripheralView in view.subviews) {
                     // hides the backdrop (iOS 7)
                     if ([[peripheralView description] hasPrefix:@"<UIKBInputBackdropView"]) {
-                        [[peripheralView layer] setOpacity:0.0];
+                        // check that this backdrop is for the accessory bar (at the top),
+                        // sparing the backdrop behind the main keyboard
+                        CGRect rect = peripheralView.frame;
+                        if (rect.origin.y == 0) {
+                            [[peripheralView layer] setOpacity:0.0];
+                        }
                     }
 
                     // hides the accessory bar