diff --git a/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs b/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs index 1977e0e59..93967c444 100644 --- a/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs +++ b/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs @@ -645,7 +645,7 @@ namespace FlaxEditor.CustomEditors.Dedicated } cm.ItemClicked += controlType => SetType((ScriptType)controlType.Tag); cm.SortItems(); - cm.Show(button.Parent, button.BottomLeft); + cm.Show(button.Parent, button.BottomLeft - new Float2((cm.Width - button.Width) / 2, 0)); } private void SetType(ref ScriptType controlType, UIControl uiControl)