You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:35 UTC

[15/17] git commit: CB-6360: Fix for crash on iOS < 6.0 (closes #37)

CB-6360: Fix for crash on iOS < 6.0 (closes #37)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/932f078e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/932f078e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/932f078e

Branch: refs/heads/master
Commit: 932f078e2dfd31a8208b9a3c0d53852289f94826
Parents: 1c32236
Author: Robin North <gi...@robinnorth.co.uk>
Authored: Wed Apr 9 16:48:00 2014 +0100
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Apr 15 15:21:39 2014 -0700

----------------------------------------------------------------------
 src/ios/CDVInAppBrowser.m | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/932f078e/src/ios/CDVInAppBrowser.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m
index 6625545..68675c5 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -552,7 +552,11 @@
     self.addressLabel.enabled = YES;
     self.addressLabel.hidden = NO;
     self.addressLabel.lineBreakMode = NSLineBreakByTruncatingTail;
-    self.addressLabel.minimumScaleFactor = 10.000;
+    if (IsAtLeastiOSVersion(@"6.0")) {
+        self.addressLabel.minimumScaleFactor = 10.0/[UIFont labelFontSize];
+    } else {
+        self.addressLabel.minimumFontSize = 10.000;
+    }
     self.addressLabel.multipleTouchEnabled = NO;
     self.addressLabel.numberOfLines = 1;
     self.addressLabel.opaque = NO;