Fix launcher height (#3013)
* Added height for searchbox * Updated top calculation for launcher window
This commit is contained in:
parent
48215c1eae
commit
b1ed7227d7
|
@ -42,7 +42,9 @@
|
|||
<Border.Effect>
|
||||
<DropShadowEffect BlurRadius="16" Opacity="0.8" ShadowDepth="0" />
|
||||
</Border.Effect>
|
||||
<local:LauncherControl x:Name="SearchBox" />
|
||||
<local:LauncherControl
|
||||
x:Name="SearchBox"
|
||||
Height="60"/>
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="ListBoxBorder"
|
||||
|
|
|
@ -265,8 +265,7 @@ namespace PowerLauncher
|
|||
var screen = Screen.FromPoint(System.Windows.Forms.Cursor.Position);
|
||||
var dpi1 = WindowsInteropHelper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Y);
|
||||
var dpi2 = WindowsInteropHelper.TransformPixelsToDIP(this, 0, screen.WorkingArea.Height);
|
||||
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.Y - totalHeight) / 4 + dpi1.Y;
|
||||
var top = (dpi2.Y - this.SearchBox.Height) / 4 + dpi1.Y;
|
||||
return top;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue