Skip to content

Commit

Permalink
Use the correct spacing for sizing the image up - improved behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tj-devel709 committed Jun 20, 2024
1 parent 86fbb8d commit 393046c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Button/Button.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static bool ResizeImageIfNecessary(UIButton platformButton, Button button, UIIma
&& currentImageHeight != originalImageSize.Height
&& currentImageWidth != originalImageSize.Width)
{
image = ResizeImageSource(image, availableWidth, availableHeight, originalImageSize, true);
image = ResizeImageSource(image, (nfloat)widthConstraint - additionalHorizontalSpace, (nfloat)heightConstraint - additionalVerticalSpace, originalImageSize, true);
}
else
{
Expand Down

0 comments on commit 393046c

Please sign in to comment.