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

Unified Diff: chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc

Issue 2694183005: Ensure autofill popup border is visible (Closed)
Patch Set: fixes Created 3 years, 10 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/browser/ui/views/autofill/password_generation_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
index 06299c1d2a2bd8244467afcac02a0871e3d16e51..383cd1f2930323e0c238c1ec4aca88a7a8963dce 100644
--- a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
@@ -221,7 +221,7 @@ void PasswordGenerationPopupViewViews::PasswordSelectionUpdated() {
void PasswordGenerationPopupViewViews::Layout() {
// Need to leave room for the border.
int y = kPopupBorderThickness;
- int popup_width = bounds().width() - 2 * kPopupBorderThickness;
+ int popup_width = GetPopupBounds().width() - 2 * kPopupBorderThickness;
if (controller_->display_password()) {
// Currently the UI can change from not offering a password to offering
// a password (e.g. the user is editing a generated password and deletes

Powered by Google App Engine
This is Rietveld 408576698