mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
auto-expanding components only need to update when not on top
This commit is contained in:
parent
5246c0be60
commit
0faa2756f5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue