Skip to content

Commit b9bdbd9

Browse files
Fix custom position
1 parent 56adac6 commit b9bdbd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ private void InitializePosition()
228228
Top = 10;
229229
break;
230230
case SearchWindowAligns.Custom:
231-
Left = screen.WorkingArea.Left + _settings.CustomWindowLeft;
232-
Top = screen.WorkingArea.Top + _settings.CustomWindowTop;
231+
Left = WindowsInteropHelper.TransformPixelsToDIP(this, screen.WorkingArea.X + _settings.CustomWindowLeft, 0).X; // TODO not working
232+
Top = WindowsInteropHelper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Y + _settings.CustomWindowTop).Y;
233233
break;
234234
}
235235
}

0 commit comments

Comments
 (0)