Skip to content

Commit 88d1236

Browse files
committed
Center the window vertically when settings = Center
1 parent e068104 commit 88d1236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ private double VerticalCenter(MonitorInfo screen)
991991
{
992992
var dip1 = Win32Helper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Y);
993993
var dip2 = Win32Helper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Height);
994-
var top = (dip2.Y - QueryTextBox.ActualHeight) / 4 + dip1.Y;
994+
var top = (dip2.Y - ActualHeight) / 2 + dip1.Y;
995995
return top;
996996
}
997997

0 commit comments

Comments
 (0)