Fix bug on disabling element on init if it is zero.

This commit is contained in:
Chandler Cox
2023-05-31 21:23:34 -05:00
parent 5c67c4f5d4
commit 424e832ec7

View File

@@ -97,6 +97,7 @@ namespace FlaxEditor.CustomEditors.Editors
AnchorPreset = AnchorPresets.TopLeft,
};
_linkButton.Clicked += ToggleLink;
ToggleEnabled();
SetLinkStyle();
var x = LinkedLabel.Text.Value.Length * 7 + 5;
_linkButton.LocalX += x;