Center the context menu that is spawned from clicking the add scripts button on an actor
This commit is contained in:
@@ -72,7 +72,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
|||||||
}
|
}
|
||||||
cm.ItemClicked += item => AddScript((ScriptType)item.Tag);
|
cm.ItemClicked += item => AddScript((ScriptType)item.Tag);
|
||||||
cm.SortItems();
|
cm.SortItems();
|
||||||
cm.Show(this, button.BottomLeft);
|
cm.Show(this, button.BottomLeft - new Float2((cm.Width - button.Width) / 2, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user