Commit 4b932f7f authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Chromium LUCI CQ

[iOS] Fix NTP fakebox constraints after rotation

This CL makes sure that the constraints of the fakebox are correctly
updated when there is only one toolbar.
In particular, those constraints were broken when rotating from portrait
to landscape.

Fixed: 1161448
Change-Id: I80dbfc524010915e381a4129208471b9e142b351
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2623013
Auto-Submit: Gauthier Ambard <gambard@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842941}
parent b42ced69
...@@ -340,6 +340,10 @@ CGFloat ToolbarHeight() { ...@@ -340,6 +340,10 @@ CGFloat ToolbarHeight() {
self.fakeLocationBarTrailingConstraint.constant = 0; self.fakeLocationBarTrailingConstraint.constant = 0;
self.fakeLocationBarTopConstraint.constant = 0; self.fakeLocationBarTopConstraint.constant = 0;
self.hintLabelLeadingConstraint.constant =
ntp_header::kHintLabelSidePadding;
self.voiceSearchTrailingMarginConstraint.constant = 0;
self.separator.alpha = 0; self.separator.alpha = 0;
return; return;
......
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