Commit 7036c930 authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

[Modern] Extend background color on omnibox suggestions

Bug: 814902
Change-Id: Ice5da70720f398c1ade0396e10f5990ee043c505
Reviewed-on: https://chromium-review.googlesource.com/999164Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548848}
parent c6890df3
......@@ -560,8 +560,10 @@ public class LocationBarLayout
int availableViewportHeight =
Math.min(mTempRect.height(), decorHeight) + additionalHeightForBottomNavMenu;
int availableListHeight = availableViewportHeight - anchorBottomRelativeToContent;
// If the bottom sheet is used, the suggestions should consume all available space.
int desiredHeight = Math.min(availableListHeight, getIdealHeight());
// The suggestions should consume all available space in Modern on phone.
int desiredHeight = useModernDesign() && !mIsTablet
? availableListHeight
: Math.min(availableListHeight, getIdealHeight());
if (layoutParams.height != desiredHeight) {
layoutParams.height = desiredHeight;
updateLayout = true;
......
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