From 0ef4647d2bef21e08d86e3a964945c84aa108803 Mon Sep 17 00:00:00 2001 From: Dabble1SC <119721976+Dabble1SC@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:25:47 -0800 Subject: [PATCH] #84 | Updated xscale ratio to match other panels --- .../UI/RadioOverlayWindow/RadioOverlayTenTransparent.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayTenTransparent.xaml.cs b/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayTenTransparent.xaml.cs index a486035d..54babf3b 100644 --- a/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayTenTransparent.xaml.cs +++ b/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayTenTransparent.xaml.cs @@ -504,7 +504,7 @@ private void containerPanel_SizeChanged(object sender, SizeChangedEventArgs e) private void CalculateScale() { var yScale = ActualHeight / RadioOverlayWin.MinHeight; - var xScale = ActualWidth / RadioOverlayWin.MinWidth; + var xScale = ActualWidth / RadioOverlayWin.MinHeight; var value = Math.Min(xScale, yScale); ScaleValue = (double) OnCoerceScaleValue(RadioOverlayWin, value); }