Commit b5515f39 authored by Ewann's avatar Ewann Committed by Commit Bot

[iOS] Updates customSeparator leading anchor

This CL updates the customSeparator leading anchor according to the
text's leading anchor of each cells.

see: https://drive.google.com/file/d/1fzYGSTxmrU2iGN-GFd_NmXwHXj4i42_M/view?usp=sharing

Bug: 922511
Change-Id: Iddb7d1875ea8f169e7608c5a4f2c59fa2c78e48a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2460893
Commit-Queue: Ewann Pellé <ewannpv@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821248}
parent 44f6c818
...@@ -110,6 +110,10 @@ ...@@ -110,6 +110,10 @@
constraintGreaterThanOrEqualToAnchor:textStackView.bottomAnchor constraintGreaterThanOrEqualToAnchor:textStackView.bottomAnchor
constant: constant:
kTableViewTwoLabelsCellVerticalSpacing], kTableViewTwoLabelsCellVerticalSpacing],
// Leading constraint for |customSepartor|.
[self.customSeparator.leadingAnchor
constraintEqualToAnchor:self.textLabel.leadingAnchor],
]]; ]];
} }
......
...@@ -150,6 +150,10 @@ const CGFloat kIconImageSize = 28; ...@@ -150,6 +150,10 @@ const CGFloat kIconImageSize = 28;
constraintEqualToAnchor:_detailTextLabel.bottomAnchor], constraintEqualToAnchor:_detailTextLabel.bottomAnchor],
[_textLabel.bottomAnchor [_textLabel.bottomAnchor
constraintEqualToAnchor:_detailTextLabel.topAnchor], constraintEqualToAnchor:_detailTextLabel.topAnchor],
// Leading constraint for |customSepartor|.
[self.customSeparator.leadingAnchor
constraintEqualToAnchor:_textLabel.leadingAnchor],
]]; ]];
if (UIContentSizeCategoryIsAccessibilityCategory( if (UIContentSizeCategoryIsAccessibilityCategory(
......
...@@ -185,6 +185,10 @@ const CGFloat kCellLabelsWidthProportion = 3.0f; ...@@ -185,6 +185,10 @@ const CGFloat kCellLabelsWidthProportion = 3.0f;
[_iconImageView.centerYAnchor [_iconImageView.centerYAnchor
constraintEqualToAnchor:contentView.centerYAnchor], constraintEqualToAnchor:contentView.centerYAnchor],
_iconHiddenConstraint, _iconHiddenConstraint,
// Leading constraint for |customSepartor|.
[self.customSeparator.leadingAnchor
constraintEqualToAnchor:_textLabel.leadingAnchor],
]]; ]];
AddOptionalVerticalPadding(contentView, _textLabel, AddOptionalVerticalPadding(contentView, _textLabel,
......
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