Merge branch 'dynamic-scale-link-image-x' of https://github.com/Tryibion/FlaxEngine into Tryibion-dynamic-scale-link-image-x

This commit is contained in:
Wojtek Figat
2023-02-15 11:12:25 +01:00

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