Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinBonilla committed Jul 12, 2024
2 parents 69651e1 + dcae6bb commit 855fb98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MaterialDesignControls.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="2.8.1">
<id>Plugin.MaterialDesignControls</id>
<version>3.1.7</version>
<version>3.1.8</version>
<title>MaterialDesignControls Plugin for Xamarin Forms</title>
<authors>Horus</authors>
<owners>AgustinBonillaHorus</owners>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ protected override void OnElementPropertyChanged(object sender, PropertyChangedE
Draw();
SetNeedsDisplay();
}
else if (Element != null
&& Element.Width > 0 && Element.Height > 0
&& (e.PropertyName == MaterialCard.WidthProperty.PropertyName || e.PropertyName == MaterialCard.HeightProperty.PropertyName))
{
SetNeedsDisplay();
}
}

public override void Draw(CGRect rect)
Expand Down

0 comments on commit 855fb98

Please sign in to comment.