[Editor/Docking] Bring window to front on focus

This commit is contained in:
SilentCLD
2021-02-04 17:49:54 +00:00
parent 7e612d89cb
commit 7868c6505d

View File

@@ -307,6 +307,14 @@ namespace FlaxEditor.GUI.Docking
_dockedTo?.SelectTab(this, autoFocus);
}
/// <summary>
/// Brings the window to the front of the Z order.
/// </summary>
public void BringToFront()
{
_dockedTo?.RootWindow?.BringToFront();
}
internal void OnUnlinkInternal()
{
OnUnlink();
@@ -412,6 +420,7 @@ namespace FlaxEditor.GUI.Docking
base.Focus();
SelectTab();
BringToFront();
}
/// <inheritdoc />