diff --git a/game/addons/tools/Code/Widgets/ControlWidgets/DictionaryControlWidget.cs b/game/addons/tools/Code/Widgets/ControlWidgets/DictionaryControlWidget.cs index f0c726e5b..aee6f9e75 100644 --- a/game/addons/tools/Code/Widgets/ControlWidgets/DictionaryControlWidget.cs +++ b/game/addons/tools/Code/Widgets/ControlWidgets/DictionaryControlWidget.cs @@ -90,13 +90,14 @@ public void Rebuild() keyControl.ReadOnly = ReadOnly; keyControl.Enabled = Enabled; + keyControl.FixedHeight = MathF.Max( keyControl.MinimumHeight, Theme.ControlHeight ); valControl.ReadOnly = ReadOnly; valControl.Enabled = Enabled; var index = y; //grid.AddCell( 0, y, new IconButton( "drag_handle" ) { IconSize = 13, Foreground = Theme.ControlBackground, Background = Color.Transparent, FixedWidth = Theme.RowHeight, FixedHeight = Theme.RowHeight } ); - grid.AddCell( 1, y, keyControl, 1, 1, keyControl.CellAlignment ); + grid.AddCell( 1, y, keyControl, 1, 1, TextFlag.Center ); grid.AddCell( 2, y, new IconButton( ":" ) { IconSize = 13, Foreground = Theme.TextControl, Background = Color.Transparent, FixedWidth = Theme.RowHeight, FixedHeight = Theme.RowHeight } ); grid.AddCell( 3, y, valControl, 1, 1, valControl.CellAlignment ); diff --git a/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs b/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs index 0852a0e23..f2d7268f3 100644 --- a/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs +++ b/game/addons/tools/Code/Widgets/ControlWidgets/GenericControlWidget.cs @@ -175,7 +175,7 @@ void BuildInlineEditor( InlineEditorAttribute attribute ) { Layout = Layout.Column(); - if ( attribute.Label ) + if ( attribute.Label && !SerializedProperty.Parent.GetType().IsAssignableTo( typeof( SerializedCollection ) ) ) { Layout.Add( ControlSheet.CreateLabel( SerializedProperty ) ); }