From 88d12367375e622a0da4bedfc8301287f413a24d Mon Sep 17 00:00:00 2001 From: dcog989 Date: Fri, 26 Sep 2025 17:02:23 +0100 Subject: [PATCH] Center the window vertically when settings = Center --- Flow.Launcher/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 7b6a0d79bed..786d48fc46d 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -991,7 +991,7 @@ private double VerticalCenter(MonitorInfo screen) { var dip1 = Win32Helper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Y); var dip2 = Win32Helper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Height); - var top = (dip2.Y - QueryTextBox.ActualHeight) / 4 + dip1.Y; + var top = (dip2.Y - ActualHeight) / 2 + dip1.Y; return top; }