Commit 9ea45f07 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Fix TableViewTextLinkCell Label Spacing

- Increases top spacing to 13px
- Decreases bottom spacing to 0px so that the vertical spacing between footnote labels in Clear Browsing Data is not massive.

Screenshots: https://drive.google.com/open?id=12DY7uMoFwu0qpy93N3nUEdsBPIDeaJlQ, https://drive.google.com/open?id=1XARsG_J1dvUu1gSDVBJW4qTfPVMTp8mN

Bug: 863330
Change-Id: I92b7b4d09617353d6ccba088ea8fa3675b32c986
Reviewed-on: https://chromium-review.googlesource.com/1141056Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575851}
parent 9641b86a
...@@ -32,6 +32,6 @@ extern const CGFloat kTableViewHighlightedCellColorAlpha; ...@@ -32,6 +32,6 @@ extern const CGFloat kTableViewHighlightedCellColorAlpha;
extern const CGFloat kUseDefaultFontSize; extern const CGFloat kUseDefaultFontSize;
// Spacing between text label and cell contentView. // Spacing between text label and cell contentView.
extern const CGFloat kTableViewLabelVerticalSpacing; extern const CGFloat kTableViewLabelVerticalTopSpacing;
#endif // IOS_CHROME_BROWSER_UI_TABLE_VIEW_CELLS_TABLE_VIEW_CELLS_CONSTANTS_H_ #endif // IOS_CHROME_BROWSER_UI_TABLE_VIEW_CELLS_TABLE_VIEW_CELLS_CONSTANTS_H_
...@@ -16,4 +16,4 @@ const CGFloat kTableViewCellSelectionAnimationDuration = 0.15; ...@@ -16,4 +16,4 @@ const CGFloat kTableViewCellSelectionAnimationDuration = 0.15;
const CGFloat kTableViewHighlightedCellColor = 0xA6A6A6; const CGFloat kTableViewHighlightedCellColor = 0xA6A6A6;
const CGFloat kTableViewHighlightedCellColorAlpha = 0.5; const CGFloat kTableViewHighlightedCellColorAlpha = 0.5;
const CGFloat kUseDefaultFontSize = 0.0; const CGFloat kUseDefaultFontSize = 0.0;
const CGFloat kTableViewLabelVerticalSpacing = 4.0; const CGFloat kTableViewLabelVerticalTopSpacing = 13.0;
...@@ -85,10 +85,10 @@ const CGFloat kTextCellLinkColor = 0x1A73E8; ...@@ -85,10 +85,10 @@ const CGFloat kTextCellLinkColor = 0x1A73E8;
constant:kTableViewHorizontalSpacing], constant:kTableViewHorizontalSpacing],
[_textLabel.topAnchor [_textLabel.topAnchor
constraintEqualToAnchor:self.contentView.topAnchor constraintEqualToAnchor:self.contentView.topAnchor
constant:kTableViewLabelVerticalSpacing], constant:kTableViewLabelVerticalTopSpacing],
[_textLabel.bottomAnchor [_textLabel.bottomAnchor
constraintEqualToAnchor:self.contentView.bottomAnchor constraintEqualToAnchor:self.contentView.bottomAnchor
constant:-kTableViewLabelVerticalSpacing], constant:0],
[_textLabel.trailingAnchor [_textLabel.trailingAnchor
constraintEqualToAnchor:self.contentView.trailingAnchor constraintEqualToAnchor:self.contentView.trailingAnchor
constant:-kTableViewHorizontalSpacing] constant:-kTableViewHorizontalSpacing]
......
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