mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
fixed new paragraph handling not checking for changes before calculating size
This commit is contained in:
parent
179afbc428
commit
d6ab8061f3
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ namespace MLEM.Ui.Elements {
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override Vector2 CalcActualSize(RectangleF parentArea) {
|
protected override Vector2 CalcActualSize(RectangleF parentArea) {
|
||||||
var size = base.CalcActualSize(parentArea);
|
var size = base.CalcActualSize(parentArea);
|
||||||
|
this.CheckTextChange();
|
||||||
this.TokenizeIfNecessary();
|
this.TokenizeIfNecessary();
|
||||||
this.AlignAndSplitIfNecessary(size);
|
this.AlignAndSplitIfNecessary(size);
|
||||||
var textSize = this.tokenizedText.GetArea(Vector2.Zero, this.TextScale * this.TextScaleMultiplier * this.Scale).Size;
|
var textSize = this.tokenizedText.GetArea(Vector2.Zero, this.TextScale * this.TextScaleMultiplier * this.Scale).Size;
|
||||||
|
|
Loading…
Reference in a new issue