[Editor/Docking] Bring window to front on focus
This commit is contained in:
@@ -307,6 +307,14 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
_dockedTo?.SelectTab(this, autoFocus);
|
_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()
|
internal void OnUnlinkInternal()
|
||||||
{
|
{
|
||||||
OnUnlink();
|
OnUnlink();
|
||||||
@@ -412,6 +420,7 @@ namespace FlaxEditor.GUI.Docking
|
|||||||
base.Focus();
|
base.Focus();
|
||||||
|
|
||||||
SelectTab();
|
SelectTab();
|
||||||
|
BringToFront();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user