From b2f457088d19568105a737abfad278e68917016f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 21 May 2023 11:28:07 +0200 Subject: [PATCH] fixed panels unnecessarily trying to ScrollSetup (regression 3127ad5) --- MLEM.Ui/Elements/Panel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Panel.cs b/MLEM.Ui/Elements/Panel.cs index 70e7e27..5f3c58d 100644 --- a/MLEM.Ui/Elements/Panel.cs +++ b/MLEM.Ui/Elements/Panel.cs @@ -233,7 +233,8 @@ namespace MLEM.Ui.Elements { if (grandchild) { this.ScrollChildren(); // we also need to re-setup here in case the child is involved in a special GetTotalCoveredArea - this.ScrollSetup(); + if (!this.AreaDirty) + this.ScrollSetup(); } }