Commit 2e48be25 authored by Xianzhu Wang's avatar Xianzhu Wang Committed by Commit Bot

Fix mac scrollbar thumb width with --enable-use-zoom-for-dsf

Bug: 716231
Change-Id: I20e23ea9c6f908d188a993f40cd036715b09748f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2360420Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799127}
parent ba872475
......@@ -374,7 +374,7 @@ void ScrollbarThemeMac::PaintThumbInternal(GraphicsContext& context,
setBoundsSize:NSSizeFromCGSize(CGSize(scrollbar.FrameRect().Size()))];
[observer setSuppressSetScrollbarsHidden:NO];
thumb_size = [scrollbar_painter trackBoxWidth];
thumb_size = [scrollbar_painter trackBoxWidth] * scrollbar.ScaleFromDIP();
}
if (!scrollbar.Enabled())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment