summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/native_theme/native_theme_win.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index b3d09a4..3c26c97 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -254,6 +254,15 @@ gfx::Size NativeThemeWin::GetPartSize(Part part,
size.cx = 13;
size.cy = 13;
break;
+ case kScrollbarDownArrow:
+ case kScrollbarLeftArrow:
+ case kScrollbarRightArrow:
+ case kScrollbarUpArrow:
+ case kScrollbarHorizontalThumb:
+ case kScrollbarVerticalThumb:
+ size.cx = size.cy = static_cast<int>(GetSystemMetrics(SM_CXVSCROLL) /
+ ui::win::GetDeviceScaleFactor());
+ break;
default:
size.cx = 0;
size.cy = 0;