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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java

Issue 686673002: Correcting suggestion popup width on orientation change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correcting suggestion popup width Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java
index e1f568279c247ac7eda513c6db4d71b01780ba57..c7e11d39773d075376369910872f0777255586b0 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java
@@ -59,7 +59,7 @@ public class SuggestionPopup implements OnSuggestionsReceivedListener, TextWatch
public void onLayoutChange(View v, int left, int top, int right, int bottom,
int oldLeft, int oldTop, int oldRight, int oldBottom) {
if (mSuggestionsPopup == null || !mSuggestionsPopup.isShowing()) return;
- mSuggestionsPopup.setWidth(mUrlField.getWidth());
+ mSuggestionsPopup.setWidth(mToolbar.getWidth());
mSuggestionsPopup.setHeight(getSuggestionPopupHeight());
mSuggestionsPopup.show();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698