Skip to content

Commit

Permalink
#84 | Updated xscale ratio to match other panels
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabble1SC committed Dec 4, 2023
1 parent 1caa7ca commit 0ef4647
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0ef4647

Please sign in to comment.