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 2012/11/28 01:42:21 UTC
ios commit: [CB-1890] InAppBrowser: location bar url text needs
indentation
Updated Branches:
refs/heads/master 17a71e8b5 -> d28cfff01
[CB-1890] InAppBrowser: location bar url text needs indentation
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/d28cfff0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/d28cfff0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/d28cfff0
Branch: refs/heads/master
Commit: d28cfff01ba8cfee48388cc617e9c102fb2674e8
Parents: 17a71e8
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Nov 27 16:42:12 2012 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Nov 27 16:42:12 2012 -0800
----------------------------------------------------------------------
CordovaLib/Classes/CDVInAppBrowser.m | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/d28cfff0/CordovaLib/Classes/CDVInAppBrowser.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVInAppBrowser.m b/CordovaLib/Classes/CDVInAppBrowser.m
index b04b142..5a07f7d 100644
--- a/CordovaLib/Classes/CDVInAppBrowser.m
+++ b/CordovaLib/Classes/CDVInAppBrowser.m
@@ -221,12 +221,13 @@
self.toolbar.opaque = NO;
self.toolbar.userInteractionEnabled = YES;
- self.addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0, (self.view.bounds.size.height - FOOTER_HEIGHT), self.view.bounds.size.width, LOCATIONBAR_HEIGHT)];
+ CGFloat labelInset = 5.0;
+ self.addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(labelInset, (self.view.bounds.size.height - FOOTER_HEIGHT), self.view.bounds.size.width - labelInset, LOCATIONBAR_HEIGHT)];
self.addressLabel.adjustsFontSizeToFitWidth = NO;
self.addressLabel.alpha = 1.000;
self.addressLabel.autoresizesSubviews = YES;
self.addressLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin;
- self.addressLabel.backgroundColor = [UIColor grayColor];
+ self.addressLabel.backgroundColor = [UIColor clearColor];
self.addressLabel.baselineAdjustment = UIBaselineAdjustmentAlignCenters;
self.addressLabel.clearsContextBeforeDrawing = YES;
self.addressLabel.clipsToBounds = YES;
@@ -257,6 +258,7 @@
[self.toolbar setItems:@[self.closeButton, flexibleSpaceButton, self.backButton, fixedSpaceButton, self.forwardButton]];
+ self.view.backgroundColor = [UIColor grayColor];
[self.view addSubview:self.toolbar];
[self.view addSubview:self.addressLabel];
[self.view addSubview:self.spinner];