Commit d8e8fb73 authored by stkhapugin@chromium.org's avatar stkhapugin@chromium.org Committed by Commit Bot

Adjust various location bar element spacings.

Minor improvements to the location bar layout.

Bug: 865379
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I5a7bfbc397cda4fdb607166dd7d5f0c3dfc468e1
Reviewed-on: https://chromium-review.googlesource.com/1151196Reviewed-by: default avatarElodie Banel <lod@chromium.org>
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578287}
parent 96177551
...@@ -22,8 +22,11 @@ namespace { ...@@ -22,8 +22,11 @@ namespace {
const CGFloat kButtonSize = 24; const CGFloat kButtonSize = 24;
// Space between the location icon and the location label. // Space between the location icon and the location label.
const CGFloat kLocationImageToLabelSpacing = 2.0; const CGFloat kLocationImageToLabelSpacing = -4.0;
// Minimal horizontal padding between the leading edge of the location bar and
// the content of the location bar.
const CGFloat kLocationBarLeadingPadding = 5.0;
// Trailing space between the button and the trailing edge of the location bar.
const CGFloat kButtonTrailingSpacing = 10; const CGFloat kButtonTrailingSpacing = 10;
} // namespace } // namespace
...@@ -181,7 +184,8 @@ const CGFloat kButtonTrailingSpacing = 10; ...@@ -181,7 +184,8 @@ const CGFloat kButtonTrailingSpacing = 10;
[NSLayoutConstraint activateConstraints:@[ [NSLayoutConstraint activateConstraints:@[
[_locationContainerView.leadingAnchor [_locationContainerView.leadingAnchor
constraintGreaterThanOrEqualToAnchor:self.leadingAnchor], constraintGreaterThanOrEqualToAnchor:self.leadingAnchor
constant:kLocationBarLeadingPadding],
[_trailingButton.centerYAnchor [_trailingButton.centerYAnchor
constraintEqualToAnchor:self.centerYAnchor], constraintEqualToAnchor:self.centerYAnchor],
[_locationContainerView.centerYAnchor [_locationContainerView.centerYAnchor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment