mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: HorizontalGroupDrawer
This commit is contained in:
parent
16cf317d30
commit
36ff2b7534
@ -196,8 +196,11 @@ namespace Alchemy.Editor.Drawers
|
||||
field.RemoveFromClassList("unity-base-field__aligned");
|
||||
|
||||
var labelElement = field.Q<Label>();
|
||||
labelElement.style.minWidth = 0f;
|
||||
labelElement.style.width = GUIHelper.CalculateLabelWidth(element, inspector) * 0.8f / childCount;
|
||||
if (labelElement != null)
|
||||
{
|
||||
labelElement.style.minWidth = 0f;
|
||||
labelElement.style.width = GUIHelper.CalculateLabelWidth(element, inspector) * 0.8f / childCount;
|
||||
}
|
||||
}
|
||||
|
||||
root.schedule.Execute(() =>
|
||||
|
Loading…
Reference in New Issue
Block a user