From db46d50eff1b44e6fe3eea60b3c49fd2df1bc12d Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 27 Jan 2023 08:28:47 -0600 Subject: [PATCH] Fixed sized for tag header drop panel and add tag button to match with other sizing. --- Source/Editor/CustomEditors/Editors/TagEditor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Editor/CustomEditors/Editors/TagEditor.cs b/Source/Editor/CustomEditors/Editors/TagEditor.cs index e9bcd97a9..8a4333a9b 100644 --- a/Source/Editor/CustomEditors/Editors/TagEditor.cs +++ b/Source/Editor/CustomEditors/Editors/TagEditor.cs @@ -322,7 +322,7 @@ namespace FlaxEditor.CustomEditors.Editors internal static ContextMenuBase CreatePicker(Tag value, Tag[] values, PickerData pickerData) { // Initialize search popup - var menu = Utilities.Utils.CreateSearchPopup(out var searchBox, out var tree, 40.0f); + var menu = Utilities.Utils.CreateSearchPopup(out var searchBox, out var tree, 42.0f); // Add tag drop panel var addTagDropPanel = new DropPanel @@ -333,6 +333,7 @@ namespace FlaxEditor.CustomEditors.Editors ArrowImageClosed = new SpriteBrush(FlaxEngine.GUI.Style.Current.ArrowRight), Parent = menu, HeaderTextMargin = new Margin(2.0f), + HeaderHeight = 18.0f, AnchorPreset = AnchorPresets.TopLeft, Bounds = new Rectangle(2, 2, menu.Width - 4, 30), IsClosed = true, @@ -408,7 +409,7 @@ namespace FlaxEditor.CustomEditors.Editors var buttonAddTag = new Button { Parent = addButtonPanel, - Size = new Float2(100, 20), + Size = new Float2(100, 18), Text = "Add Tag", AnchorPreset = AnchorPresets.MiddleCenter, };