Commit 89c6f2bf authored by gogerald's avatar gogerald Committed by Commit Bot

[StartSurface] Avoid clipping omnibox suggestions on single pane

Screenshot before:
https://drive.google.com/file/d/12NZSwfUUEGC9dXSIEoSUB3mlMmjDmwtE/view?usp=sharing

after:
https://drive.google.com/file/d/1oHZ21pwrplRsKy8mzX0jDBKkmOaDPka8/view?usp=sharing

Bug: 982018
Change-Id: Ib2cffd89fd1a8fc319e65e2cf70e32442fd9b072
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1769355
Commit-Queue: Ganggui Tang <gogerald@chromium.org>
Auto-Submit: Ganggui Tang <gogerald@chromium.org>
Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690906}
parent eaee4be5
......@@ -206,9 +206,11 @@ public class StartSurfaceCoordinator implements StartSurface {
// Create the explore surface.
// TODO(crbug.com/982018): This is a hack to hide the top tab switcher toolbar in
// the explore surface. Remove it after deciding on where to put the omnibox.
ViewGroup exploreSurfaceContainer =
(ViewGroup) mActivity.getCompositorViewHolder().getParent();
// the SurfaceMode.TWO_PANES mode explore surface. Remove it after deciding on where to put
// the omnibox.
ViewGroup exploreSurfaceContainer = mSurfaceMode == SurfaceMode.SINGLE_PANE
? mActivity.getCompositorViewHolder()
: (ViewGroup) mActivity.getCompositorViewHolder().getParent();
mExploreSurfaceCoordinator = new ExploreSurfaceCoordinator(mActivity,
exploreSurfaceContainer,
mSurfaceMode == SurfaceMode.SINGLE_PANE ? mTasksSurface.getContainerView() : null,
......
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