content size filter+layout group = size set to 0

my unity version is 2022.3.20, and I have found that this issue also occurs in 2022 3.29.

9845763--1417008--upload_2024-5-21_5-12-1.png
the editor view
9845763--1417011--upload_2024-5-21_5-18-32.png
the game view

By the way, I made a minimal project attachment to verify the issue. According to the verification, the problem lies in having these two components present on the same game object simultaneously.

9845763–1417014–Scenes.zip (9.69 KB)

found a resolution:
LayoutRebuilder.ForceRebuildLayoutImmediate( parentGameObject.GetComponent());
well, it’s not perfect , but that’s all I can do