adding fixed height for caculating windows top

This commit is contained in:
qianlifeng 2015-02-20 22:18:27 +08:00
parent d93c705737
commit 48e01d3ea3

View File

@ -299,7 +299,7 @@ namespace Wox
} }
else 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; return UserSettingStorage.Instance.WindowTop;
} }