I tried to test the FlexLayout component when the length of the text of the TMP_Text can change.
The hierarchy is this:
Every gameobject has a FlexLayout component attached and they are set like this:
[ Root ]

[ both Text_*_Parent gameobjects ]

[ both Text gameobjects ]

As shown in the "Scroll View" smaple scene, I attached the ContextSizeFitter component (with the "Horizontal Fit" option set to "Preferred Size") to both the TMP_Text gameobjects and the result is this:

p.s. the red box is the Root gameobject and the white boxes are the Text_*_Parent gameobjects.
When I'm trying to get this result instead:

Am I missing something? Do I need to change the settings of my FlexLayout in a certain way?
I tried to test the FlexLayout component when the length of the text of the TMP_Text can change.
The hierarchy is this:
Every gameobject has a FlexLayout component attached and they are set like this:
[ Root ]

[ both Text_*_Parent gameobjects ]

[ both Text gameobjects ]

As shown in the "Scroll View" smaple scene, I attached the ContextSizeFitter component (with the "Horizontal Fit" option set to "Preferred Size") to both the TMP_Text gameobjects and the result is this:

p.s. the red box is the Root gameobject and the white boxes are the Text_*_Parent gameobjects.
When I'm trying to get this result instead:

Am I missing something? Do I need to change the settings of my FlexLayout in a certain way?