Fix review comment.
MODIFY
WalletWasabi.Fluent/Controls/FadeOutTextBlock.cs
WalletWasabi.Fluent/Controls/FadeOutTextBlock.cs
@@ -10,7 +10,6 @@ namespace WalletWasabi.Fluent.Controls;
public class FadeOutTextBlock : TextBlock, IStyleable
{
private TextLayout? _trimmedLayout;
- private Size _constraint;
private bool _cutOff;
private TextLayout? _noTrimLayout;
@@ -129,8 +128,7 @@ public class FadeOutTextBlock : TextBlock, IStyleable
if (availableSize != _noTrimLayout?.Size)
{
- _constraint = availableSize;
- NewCreateTextLayout(_constraint, Text);
+ NewCreateTextLayout(availableSize, Text);
}
return (_trimmedLayout?.Size ?? Size.Empty).Inflate(padding);

Fix review comment.