Code cleanup

This commit is contained in:
Tig
2024-07-18 16:03:32 -06:00
parent 6c07532bce
commit e4e2b59a60
2 changed files with 4 additions and 9 deletions

View File

@@ -689,8 +689,6 @@ public partial class View
LayoutAdornments ();
//SetTextFormatterSize ();
// Sort out the dependencies of the X, Y, Width, Height properties
HashSet<View> nodes = new ();
HashSet<(View, View)> edges = new ();
@@ -719,7 +717,7 @@ public partial class View
private void LayoutSubview (View v, Size contentSize)
{
// BUGBUG: Calling SetRelativeLayout before LayoutSubviews is problematic. Need to resolve.
// Note, SetRelativeLayout calls SetTextFormatterSize
v.SetRelativeLayout (contentSize);
v.LayoutSubviews ();
v.LayoutNeeded = false;

View File

@@ -157,12 +157,9 @@ public partial class View
/// </remarks>
protected virtual void UpdateTextFormatterText ()
{
if (TextFormatter is { })
{
TextFormatter.Text = _text;
TextFormatter.Width = null;
TextFormatter.Height = null;
}
TextFormatter.Text = _text;
TextFormatter.Width = null;
TextFormatter.Height = null;
}
/// <summary>