From 119d92732fbb5d9f6ecde5aef43b83eb9cd61ad2 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 19 May 2020 20:32:20 +0200 Subject: [PATCH] Don't UseLayoutRounding on ScrollBar. Its default size of 18 with a thumb size of 8 can't be laid out to device pixels with a scaling of 1.5x. Previously, the thumb had more space on the right than the left, with this change it had more space on the left than the right. For some reason though it was more noticably offset with the space on the left. We may need to change the default sizes for `ScrollBar`. --- src/Avalonia.Themes.Default/ScrollBar.xaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Themes.Default/ScrollBar.xaml b/src/Avalonia.Themes.Default/ScrollBar.xaml index 64a4399d16..0f8fa4986d 100644 --- a/src/Avalonia.Themes.Default/ScrollBar.xaml +++ b/src/Avalonia.Themes.Default/ScrollBar.xaml @@ -3,7 +3,8 @@ - + - +