From 48e01d3ea38698a569ca69329df514e6d3ba3bf6 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Fri, 20 Feb 2015 22:18:27 +0800 Subject: [PATCH] adding fixed height for caculating windows top --- Wox/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }