diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index bea24ac6d2..4be961e7db 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -299,7 +299,7 @@ namespace Wox } else { - UserSettingStorage.Instance.WindowTop = (screen.WorkingArea.Height - ActualHeight) / 4 + screen.WorkingArea.Top; + UserSettingStorage.Instance.WindowTop = (screen.WorkingArea.Height - tbQuery.ActualHeight) / 4 + screen.WorkingArea.Top; } return UserSettingStorage.Instance.WindowTop; }