itemIcon = CreateIcon(ItemStyle?.Icon);
if (itemIcon != null)
{
- layoutChanged = true;
Add(itemIcon);
itemIcon.Relayout += OnIconRelayout;
+ layoutChanged = true;
+ LayoutChild();
}
}
return itemIcon;
itemIcon.Relayout += OnIconRelayout;
}
layoutChanged = true;
+ LayoutChild();
}
}
itemLabel = CreateLabel(ItemStyle?.Label);
if (itemLabel != null)
{
- layoutChanged = true;
Add(itemLabel);
+ layoutChanged = true;
+ LayoutChild();
}
}
return itemLabel;
internal set
{
itemLabel = value;
+ layoutChanged = true;
+ LayoutChild();
}
}
itemSubLabel = CreateLabel(ItemStyle?.SubLabel);
if (itemLabel != null)
{
- layoutChanged = true;
Add(itemSubLabel);
+ layoutChanged = true;
+ LayoutChild();
}
}
return itemSubLabel;
internal set
{
itemSubLabel = value;
+ layoutChanged = true;
+ LayoutChild();
}
}
itemExtra = CreateIcon(ItemStyle?.Extra);
if (itemExtra != null)
{
- layoutChanged = true;
Add(itemExtra);
itemExtra.Relayout += OnExtraRelayout;
+ layoutChanged = true;
+ LayoutChild();
}
}
return itemExtra;
Add(itemExtra);
}
layoutChanged = true;
+ LayoutChild();
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public override void OnRelayout(Vector2 size, RelayoutContainer container)
{
+ LayoutChild();
+
base.OnRelayout(size, container);
if (prevSize != Size)