Skip to content

Commit

Permalink
set start location for search window to mouse position
Browse files Browse the repository at this point in the history
  • Loading branch information
changbowen committed Nov 15, 2019
1 parent 46a4734 commit bd61ab5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Win_Format.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ internal void Find(object sender, RoutedEventArgs e)
{
FadeOut();
var win = new Win_Search(MainWin);
win.FadeIn(
MainWin.Left + (MainWin.Width - win.Width) / 2,
MainWin.Top + (MainWin.Height - win.Height) / 2
);
win.FadeIn();
}

#endregion
Expand Down

0 comments on commit bd61ab5

Please sign in to comment.