Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3601)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java

Issue 1589023003: [Contextual Search] Enable for fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
index da3742d08f0f94ff80632d7ca4eb8d28b8f20395..75a26d8404f592472fa25721f28b43413f926428 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
@@ -78,13 +78,14 @@ public class ContextualSearchLayout extends ContextualSearchSupportedLayout {
* @param width The new width in dp.
* @param height The new height in dp.
*/
+ @Override
protected void onSizeChanged(float width, float height) {
if (mBaseTab != null) {
OverlayPanel panel = mPanelManager.getActivePanel();
if (panel != null) {
mBaseTab.setMaxContentWidth(width);
- mBaseTab.setMaxContentHeight(panel.getMaximumHeight());
- mBaseTab.setContentSize(width, panel.getMaximumHeight());
+ mBaseTab.setMaxContentHeight(panel.getTabHeight());
+ mBaseTab.setContentSize(width, panel.getTabHeight());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698