cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject 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
Date Thu, 13 Mar 2014 18:59:55 GMT
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 <andrew@ashearer.com>
Authored: Wed Mar 12 10:15:03 2014 -0400
Committer: Shazron Abdullah <shazron@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


Mime
View raw message