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

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

Issue 13482012: fix layout of requestAutocomplete suggestion dropdown menu on views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIXME into comment Created 7 years, 8 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 | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 07ac04e03b27f8c020fef938e0a723ef38e6788d..50f1af77a254398abf2da46bacae22ff32d9c8eb 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -874,10 +874,12 @@ void AutofillDialogViews::ButtonPressed(views::Button* sender,
group->container->SetActive(true);
// Ignore the result since we don't need to handle a deleted menu specially.
+ gfx::Rect bounds = group->suggested_button->GetBoundsInScreen();
+ bounds.Inset(group->suggested_button->GetInsets());
ignore_result(
menu_runner_->RunMenuAt(sender->GetWidget(),
NULL,
- group->suggested_button->GetBoundsInScreen(),
+ bounds,
views::MenuItemView::TOPRIGHT,
0));
group->container->SetActive(false);
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698