Browse Source

Increase LayoutTransformControl.DecimalsAfterRound from 4 to 8 (#16583)

Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
pull/16593/head
BobLd 2 years ago
committed by GitHub
parent
commit
a6c446d022
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      src/Avalonia.Controls/LayoutTransformControl.cs

10
src/Avalonia.Controls/LayoutTransformControl.cs

@ -192,6 +192,14 @@ namespace Avalonia.Controls
ApplyLayoutTransform();
}
/*
* About AcceptableDelta and DecimalsAfterRound - Original comment from the Silverlight code explains:
* // Note: AcceptableDelta and DecimalsAfterRound work around double arithmetic rounding issues on Silverlight.
*
* The DecimalsAfterRound property here was increased from the original 4 to 8 because of issues when zooming in
* and out at the end of very large objects.
*/
/// <summary>
/// Acceptable difference between two doubles.
/// </summary>
@ -200,7 +208,7 @@ namespace Avalonia.Controls
/// <summary>
/// Number of decimals to round the Matrix to.
/// </summary>
private const int DecimalsAfterRound = 4;
private const int DecimalsAfterRound = 8;
/// <summary>
/// Actual DesiredSize of Child element (the value it returned from its MeasureOverride method).

Loading…
Cancel
Save