1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-29 03:23:37 +02:00

Fixed a NRE with tooltips

This commit is contained in:
Ell 2021-01-20 06:41:52 +01:00
parent 3cd8c54e5c
commit fc9b93b129

View file

@ -123,7 +123,8 @@ namespace MLEM.Ui.Elements {
}
private void Init(Element elementToHover) {
this.Paragraph.AutoAdjustWidth = true;
if (this.Paragraph != null)
this.Paragraph.AutoAdjustWidth = true;
this.SetWidthBasedOnChildren = true;
this.SetHeightBasedOnChildren = true;