From 3a0e86b4146483cb47878b4334a120f7559b5cd2 Mon Sep 17 00:00:00 2001 From: pkujhd Date: Tue, 10 Dec 2024 11:11:01 +0800 Subject: [PATCH] fix ArgumentOutOfRangeException when richtextfield._textChanged is true --- Assets/Scripts/Core/Container.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/Core/Container.cs b/Assets/Scripts/Core/Container.cs index 385c34f3..3ff755b7 100644 --- a/Assets/Scripts/Core/Container.cs +++ b/Assets/Scripts/Core/Container.cs @@ -942,6 +942,7 @@ private void DoFairyBatching() private void CollectChildren(Container initiator, bool outlineChanged) { + EnsureSizeCorrect(); int count = _children.Count; for (int i = 0; i < count; i++) {