Fixed status label width for in-progress download.
Previously status label was resized by calling sizeToFit. sizeToFit does not play well with autolayout and overrides the existing constraints. This CL creates statusLabelTrailingConstraint which anchors the label to close button or to action button (when download is not in progress and action button is visible). The test was updated to force the view load, so setting up constrains do not fail in the test. Bug: 827641 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I2d84d6ba041d85bfd7cee9290c76c56a8f68c8b8 Reviewed-on: https://chromium-review.googlesource.com/988750 Commit-Queue: Eugene But <eugenebut@chromium.org> Reviewed-by:edchin <edchin@chromium.org> Cr-Commit-Position: refs/heads/master@{#547878}
Showing
Please register or sign in to comment