File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -306,15 +306,15 @@ private void InitializePosition()
306
306
break ;
307
307
case SearchWindowAligns . CenterTop :
308
308
Left = HorizonCenter ( screen ) ;
309
- Top = 10 ;
309
+ Top = VerticalTop ( screen ) ;
310
310
break ;
311
311
case SearchWindowAligns . LeftTop :
312
312
Left = HorizonLeft ( screen ) ;
313
- Top = 10 ;
313
+ Top = VerticalTop ( screen ) ;
314
314
break ;
315
315
case SearchWindowAligns . RightTop :
316
316
Left = HorizonRight ( screen ) ;
317
- Top = 10 ;
317
+ Top = VerticalTop ( screen ) ;
318
318
break ;
319
319
case SearchWindowAligns . Custom :
320
320
Left = WindowsInteropHelper . TransformPixelsToDIP ( this , screen . WorkingArea . X + _settings . CustomWindowLeft , 0 ) . X ;
@@ -727,6 +727,13 @@ public double HorizonLeft(Screen screen)
727
727
return left ;
728
728
}
729
729
730
+ public double VerticalTop ( Screen screen )
731
+ {
732
+ var dip1 = WindowsInteropHelper . TransformPixelsToDIP ( this , 0 , screen . WorkingArea . Y ) ;
733
+ var top = dip1 . Y + 10 ;
734
+ return top ;
735
+ }
736
+
730
737
/// <summary>
731
738
/// Register up and down key
732
739
/// todo: any way to put this in xaml ?
You can’t perform that action at this time.
0 commit comments