diff --git a/Resources/ScrollBarStyles.xaml b/Resources/ScrollBarStyles.xaml
index eb18ae5..af4f356 100644
--- a/Resources/ScrollBarStyles.xaml
+++ b/Resources/ScrollBarStyles.xaml
@@ -164,7 +164,7 @@
-
+
@@ -220,7 +220,7 @@
-
+
diff --git a/UserInterface/Menu.xaml b/UserInterface/Menu.xaml
index cf6b32a..bd72c13 100644
--- a/UserInterface/Menu.xaml
+++ b/UserInterface/Menu.xaml
@@ -184,6 +184,11 @@
SelectionChanged="ListView_SelectionChanged" MouseLeave="ListView_MouseLeave"
ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.ScrollChanged="HandleScrollChanged">
+
+
+
+ 116
+
diff --git a/UserInterface/Menu.xaml.cs b/UserInterface/Menu.xaml.cs
index ceb5fc0..a014705 100644
--- a/UserInterface/Menu.xaml.cs
+++ b/UserInterface/Menu.xaml.cs
@@ -592,15 +592,15 @@ namespace SystemTrayMenu.UserInterface
if (IsLoaded)
{
- AdjustWindowPositionAndInnerLayoutInternal(originLocation);
+ AdjustWindowPositionInternal(originLocation);
}
else
{
// Layout cannot be calculated during loading, postpone this event
- Loaded += (_, _) => AdjustWindowPositionAndInnerLayoutInternal(originLocation);
+ Loaded += (_, _) => AdjustWindowPositionInternal(originLocation);
}
- void AdjustWindowPositionAndInnerLayoutInternal(in Point originLocation)
+ void AdjustWindowPositionInternal(in Point originLocation)
{
double scaling = Math.Round(Scaling.Factor, 0, MidpointRounding.AwayFromZero);
double overlappingOffset = 0D;
@@ -846,29 +846,7 @@ namespace SystemTrayMenu.UserInterface
windowFrame.CornerRadius = new CornerRadius(CornerRadius);
}
- // Make sure we have latest values of all control sizes
UpdateLayout();
-
- // Adjust size of scroll bar thumb
- // See: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/controls/how-to-customize-the-thumb-size-on-a-scrollbar?view=netframeworkdesktop-4.8#create-a-scrollbar-with-a-fixed-thumb-size
- ScrollBar? dgvSrollBar = dgv.FindVisualChildOfType(0);
- if (dgvSrollBar != null)
- {
- Track? dgvSrollBarTrack = dgvSrollBar.FindVisualChildOfType