Fix issue with different lengths of text for scale properties.

This commit is contained in:
Chandler Cox
2023-02-12 20:51:03 -06:00
parent 7fe7742430
commit b4cce7db00

View File

@@ -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) =>