From b4cce7db009a09fc6f989c6a077b391e7c516155 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sun, 12 Feb 2023 20:51:03 -0600 Subject: [PATCH] Fix issue with different lengths of text for scale properties. --- Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs b/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs index 727575a49..2612440a4 100644 --- a/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs +++ b/Source/Editor/CustomEditors/Editors/ActorTransformEditor.cs @@ -96,7 +96,8 @@ namespace FlaxEditor.CustomEditors.Editors AnchorPreset = AnchorPresets.TopLeft, TooltipText = "Scale values are linked together.", }; - _linkImage.LocalX += 40; + var x = LinkedLabel.Text.Value.Length * 7 + 5; + _linkImage.LocalX += x; _linkImage.LocalY += 1; LinkedLabel.SetupContextMenu += (label, menu, editor) =>