mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
Code cleanup
This commit is contained in:
parent
8e2a0f1289
commit
38f39924f0
@ -156,8 +156,6 @@ namespace PowerLauncher
|
||||
var dpi1 = screen.WorkingArea.X / dpiX;
|
||||
var dpi2 = screen.WorkingArea.Width / dpiX;
|
||||
var left = (dpi2 - this.Width) / 2 + dpi1;
|
||||
Debug.WriteLine("WorkingAreaX :" + screen.WorkingArea.X + " WorkingAreaWidth :" + screen.WorkingArea.Width + " width :" + Width);
|
||||
Debug.WriteLine("Left :" + left + " DPiX :" + dpiX);
|
||||
return left;
|
||||
}
|
||||
|
||||
@ -170,7 +168,6 @@ namespace PowerLauncher
|
||||
var dpi2 = screen.WorkingArea.Height / dpiY;
|
||||
var totalHeight = this.SearchBoxBorder.Margin.Top + this.SearchBoxBorder.Margin.Bottom + this.SearchBox.Height + this.ListBoxBorder.Margin.Top + this.ListBoxBorder.Margin.Bottom + MAX_LIST_HEIGHT;
|
||||
var top = (dpi2 - totalHeight) / 4 + dpi1;
|
||||
Debug.WriteLine("Top :" + top + " DPiY :" + dpiY);
|
||||
return top;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user