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

Unified Diff: ui/views/controls/scrollbar/overlay_scroll_bar.cc

Issue 2766773002: Fix Views overlay scrollbar border stroke. (Closed)
Patch Set: Created 3 years, 9 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: ui/views/controls/scrollbar/overlay_scroll_bar.cc
diff --git a/ui/views/controls/scrollbar/overlay_scroll_bar.cc b/ui/views/controls/scrollbar/overlay_scroll_bar.cc
index 83d7a58ba6dca52f64edf15a47581667889510dd..ae0c2619822cd7ddd2940618bf6206e0c55c165f 100644
--- a/ui/views/controls/scrollbar/overlay_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/overlay_scroll_bar.cc
@@ -67,6 +67,7 @@ void OverlayScrollBar::Thumb::OnPaint(gfx::Canvas* canvas) {
stroke_flags.setStyle(cc::PaintFlags::kStroke_Style);
stroke_flags.setColor(SK_ColorWHITE);
stroke_flags.setStrokeWidth(kThumbStroke);
+ stroke_flags.setStrokeCap(cc::PaintFlags::kSquare_Cap);
gfx::RectF stroke_bounds(fill_bounds);
stroke_bounds.Inset(gfx::InsetsF(kThumbStroke / 2.f));
// The stroke doesn't apply to the far edge of the thumb.
« 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