Merge branch 'center-script-cm' of https://github.com/Tryibion/FlaxEngine into Tryibion-center-script-cm

This commit is contained in:
Wojtek Figat
2022-12-27 22:34:19 +01:00

View File

@@ -72,7 +72,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
}
cm.ItemClicked += item => AddScript((ScriptType)item.Tag);
cm.SortItems();
cm.Show(this, button.BottomLeft);
cm.Show(this, button.BottomLeft - new Float2((cm.Width - button.Width) / 2, 0));
}
/// <inheritdoc />