Skip to content

Commit

Permalink
Fix comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed May 16, 2022
1 parent b2556d6 commit 747f33f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class MenuScrollingVisibilityConverter : IMultiValueConverter

if (visibility == ScrollBarVisibility.Auto)
{
if (extent == viewport)
if (MathUtilities.AreClose(extent, viewport))
{
return false;
}
Expand Down

0 comments on commit 747f33f

Please sign in to comment.