1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-10 00:20:25 +02:00

auto-expanding components only need to update when not on top

This commit is contained in:
Ellpeck 2019-08-11 21:57:16 +02:00
parent 5246c0be60
commit 0faa2756f5

View file

@ -272,7 +272,8 @@ namespace MLEM.Ui.Elements {
var newHeight = (height - pos.Y + this.ScaledChildPadding.Y) / this.Scale;
if (newHeight != this.size.Y) {
this.size.Y = newHeight;
this.ForceUpdateArea();
if (this.Anchor > Anchor.TopRight)
this.ForceUpdateArea();
}
}
}