From f53c3d7ad5c23079b08e4efdaf65c2a939092dc9 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Sun, 30 Mar 2025 23:26:59 +0200 Subject: [PATCH] increase width of "Size" box to fit max collection size Max size is 65535 --- Source/Editor/CustomEditors/Editors/CollectionEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/CustomEditors/Editors/CollectionEditor.cs b/Source/Editor/CustomEditors/Editors/CollectionEditor.cs index 1a4bcab4d..f4423c6c6 100644 --- a/Source/Editor/CustomEditors/Editors/CollectionEditor.cs +++ b/Source/Editor/CustomEditors/Editors/CollectionEditor.cs @@ -557,7 +557,7 @@ namespace FlaxEditor.CustomEditors.Editors MinValue = _minCount, MaxValue = _maxCount, AnchorPreset = AnchorPresets.TopRight, - Bounds = new Rectangle(-40 - dropPanel.ItemsMargin.Right, y, 40, height), + Bounds = new Rectangle(-55 - dropPanel.ItemsMargin.Right, y, 55, height), Parent = dropPanel, }; @@ -566,7 +566,7 @@ namespace FlaxEditor.CustomEditors.Editors Text = "Size", AnchorPreset = AnchorPresets.TopRight, Bounds = new Rectangle(-_sizeBox.Width - 40 - dropPanel.ItemsMargin.Right - 2, y, 40, height), - Parent = dropPanel + Parent = dropPanel, }; if (!_canResize || (NotNullItems && size == 0))