Skip to content

Commit

Permalink
Merge pull request #8157 from AvaloniaUI/fixes/menuscrollingvisibilit…
Browse files Browse the repository at this point in the history
…yconverter-floating-point-compare

Fix MenuScrollingVisibilityConverter floating point compare
  • Loading branch information
maxkatz6 authored May 24, 2022
2 parents 0cad29b + 6f22bd0 commit 25384af
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 object Convert(IList<object> values, Type targetType, object parameter, C

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

0 comments on commit 25384af

Please sign in to comment.