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

Unified Diff: ui/views/controls/menu/menu_scroll_view_container.cc

Issue 2387503002: Fix menu scroll indicators and highlights overlapping the menu border. (Closed)
Patch Set: change comments Created 4 years, 3 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: ui/views/controls/menu/menu_scroll_view_container.cc
diff --git a/ui/views/controls/menu/menu_scroll_view_container.cc b/ui/views/controls/menu/menu_scroll_view_container.cc
index cbbe72ee221720b984c3856353e56123427fb6d6..edfe737ba8f9886110cf850a5e81562dba9de4da 100644
--- a/ui/views/controls/menu/menu_scroll_view_container.cc
+++ b/ui/views/controls/menu/menu_scroll_view_container.cc
@@ -76,6 +76,8 @@ class MenuScrollButton : public View {
// The background.
gfx::Rect item_bounds(0, 0, width(), height());
+ // Avoids painting over the menu border.
+ item_bounds.Inset(views::RoundRectPainter::kBorderWidth, 0);
NativeTheme::ExtraParams extra;
GetNativeTheme()->Paint(canvas->sk_canvas(),
NativeTheme::kMenuItemBackground,

Powered by Google App Engine
This is Rietveld 408576698