From d6ab8061f3d368a97e23cb70f12629201632be7c Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 23 Dec 2022 14:36:31 +0100 Subject: [PATCH] fixed new paragraph handling not checking for changes before calculating size --- MLEM.Ui/Elements/Paragraph.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MLEM.Ui/Elements/Paragraph.cs b/MLEM.Ui/Elements/Paragraph.cs index 3f4105c..418e6b7 100644 --- a/MLEM.Ui/Elements/Paragraph.cs +++ b/MLEM.Ui/Elements/Paragraph.cs @@ -175,6 +175,7 @@ namespace MLEM.Ui.Elements { /// protected override Vector2 CalcActualSize(RectangleF parentArea) { var size = base.CalcActualSize(parentArea); + this.CheckTextChange(); this.TokenizeIfNecessary(); this.AlignAndSplitIfNecessary(size); var textSize = this.tokenizedText.GetArea(Vector2.Zero, this.TextScale * this.TextScaleMultiplier * this.Scale).Size;