diff --git a/Managers/TouchPanelPositionManager.cs b/Managers/TouchPanelPositionManager.cs index 5d2df10..2dc459f 100644 --- a/Managers/TouchPanelPositionManager.cs +++ b/Managers/TouchPanelPositionManager.cs @@ -36,9 +36,9 @@ class TouchPanelPositionManager { // Calculate the desired size and position based on the other application's window var renderRect = GetLargest916Rect(rect); - var height = renderRect.Width; + var height = renderRect.Height; var left = rect.Left + (rect.Right - rect.Left - renderRect.Width) / 2; // Center horizontally - var top = rect.Bottom - height; + var top = renderRect.Top; return new Rect(left, top, renderRect.Width, height); } } diff --git a/TouchPanel.xaml b/TouchPanel.xaml index efbccc2..4e2fff4 100644 --- a/TouchPanel.xaml +++ b/TouchPanel.xaml @@ -10,65 +10,69 @@ AllowsTransparency="True" WindowStyle="None" Background="Transparent" > - - + + + + + - - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - + + + - - + + - - - + + + + +