Commit 0c4dd7c0 authored by Jinsuk Kim's avatar Jinsuk Kim Committed by Commit Bot

Remove white patch on contextual search

Contextual search needs a full screen height to display its
contents but the height returned from the class OverlayPanelBase
was shorter by toolbar height. This CL sets it right.

Tested on mobile/tablet in both portrait/landscape mode.

Bug: 772205, 810297
Change-Id: I8a863ee2e53075a31d9dc8d61bd8482aa8454455
Reviewed-on: https://chromium-review.googlesource.com/910128
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Reviewed-by: default avatarDonn Denman <donnd@chromium.org>
Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537573}
parent 771152fe
......@@ -335,7 +335,7 @@ abstract class OverlayPanelBase {
* @return The height of the Overlay Panel Content View in pixels.
*/
public int getContentViewHeightPx() {
return Math.round((mMaximumHeight - getToolbarHeight()) / mPxToDp);
return Math.round(mMaximumHeight / mPxToDp);
}
// ============================================================================================
......
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