UI Vertical Layout Group with Content Size Fitter, how to set max width?

Hello guys! I need a box that will expand as text is growing, so width of box is growing too, but i how can i limit the expanding width, so my boxes width wont be more than screen width?

Im using Vertical Horizontal Layout Group and everything works as i want, but i dont know how to limit the width of a main box?


It seems like you set the anchor points to something like xmin=xmax=0.5.
To make the box stay within the canvas enter xmin=0 and xmax=1