Fix update order inconsistencies between machines by exposing an action for when defered layout happens.

This commit is contained in:
Zode
2025-06-08 00:38:59 +03:00
committed by GitHub
parent 568719b615
commit 1fa83639c2
2 changed files with 13 additions and 12 deletions

View File

@@ -73,6 +73,11 @@ namespace FlaxEditor.GUI.Tree
/// </summary>
public bool DrawRootTreeLine = true;
/// <summary>
/// Occurs when the defered layouting happens
/// </summary>
public event Action OnDeferedLayout;
/// <summary>
/// Gets or sets the margin for the child tree nodes.
/// </summary>
@@ -375,6 +380,7 @@ namespace FlaxEditor.GUI.Tree
if (_deferLayoutUpdate)
{
base.PerformLayout();
OnDeferedLayout?.Invoke();
_deferLayoutUpdate = false;
}