Commit 9a615d96 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

Fix constraints for NTP fake omnibox

This CL fixes the constraints applied to the fake omnibox of the NTP
when it is scrolled up.

Bug: 791486
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Iec1ad1069caebcd7c78a78f2ed155be011050374
Reviewed-on: https://chromium-review.googlesource.com/805246Reviewed-by: default avatarElodie Banel <lod@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521300}
parent 765417c5
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
ntp_header::kToolbarHeight - content_suggestions::kSearchFieldHeight; ntp_header::kToolbarHeight - content_suggestions::kSearchFieldHeight;
widthConstraint.constant = searchFieldNormalWidth - 2 * maxXInset * percent; widthConstraint.constant = searchFieldNormalWidth - 2 * maxXInset * percent;
topMarginConstraint.constant = -content_suggestions::searchFieldTopMargin() + topMarginConstraint.constant = -content_suggestions::searchFieldTopMargin() -
ntp_header::kMaxTopMarginDiff * percent; ntp_header::kMaxTopMarginDiff * percent;
heightConstraint.constant = heightConstraint.constant =
content_suggestions::kSearchFieldHeight + maxHeightDiff * percent; content_suggestions::kSearchFieldHeight + maxHeightDiff * percent;
......
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