Commit 8c258c23 authored by edchin's avatar edchin Committed by Commit Bot

[ios] Fix layout in GridCell

Previously, a long title would bump the close button
off the edge of the cell. This change allows the title
to be compressed.

Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I10d88d9e90f24cd4051d1cc0161801fe6d11ae32
Reviewed-on: https://chromium-review.googlesource.com/962939Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Reviewed-by: default avataredchin <edchin@chromium.org>
Commit-Queue: edchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543145}
parent 2d90fd89
...@@ -233,8 +233,9 @@ const CGFloat kBorderWidth = 6.0f; ...@@ -233,8 +233,9 @@ const CGFloat kBorderWidth = 6.0f;
constant:-6.0f], constant:-6.0f],
]; ];
[NSLayoutConstraint activateConstraints:constraints]; [NSLayoutConstraint activateConstraints:constraints];
[closeButton setContentHuggingPriority:UILayoutPriorityDefaultHigh [titleLabel
forAxis:UILayoutConstraintAxisHorizontal]; setContentCompressionResistancePriority:UILayoutPriorityDefaultLow
forAxis:UILayoutConstraintAxisHorizontal];
return topBar; return topBar;
} }
......
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