From 932f078e2dfd31a8208b9a3c0d53852289f94826 Mon Sep 17 00:00:00 2001 From: Robin North Date: Wed, 9 Apr 2014 16:48:00 +0100 Subject: [PATCH] CB-6360: Fix for crash on iOS < 6.0 (closes #37) --- src/ios/CDVInAppBrowser.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;