Context Filter Warning (Newbie Question about Unity UI)

To avoid any XY problems here’s my Goal: I"m trying to create a TextViewer that expands and contracts dynamically and is scrollable. I accomplished this by doing the following:

Created a Panel named TextView and added:
Components:
— ScrollRect
— Content set to: Text (defined below)
— Vert Scrollbar set to: Scrollbar (defined below)
— Rect 2D Mask
— Horizontal LayoutGroup
— Force Expand Height Checked (Width Unchecked)
Children:
UI Text named Text:
— Layout ELement
---- Flexible Width: Set 1
---- Content Size Filter
— Vertical Fit : Preferred Size

UI Scrollbar named Scrollbar
---- Layout Element
Min Width: 20

This works perfectly fine and the TextBox does expand and contract as I add/remove lines from its Text field. However the Content Fitter inside of it has this big warning:

“Parent has a type of layout group component. A child of a layout group should not have a Content Size Fitter component since it should be driven by the layout group”

Is there a better way to accomplish my goal? Will having a content fitter inside a child of something with a horizontal layout cause problems later if I’m using this as a prefab in more complicated layouts later? I tried using a content fitter inside the parent (TextView) but this just caused it to expand to the full size of the child Text which i definitely do not want.

scroll views come with 3 parts. A scroll view → viewport → content. Stuff should go under content. If you delete the viewport and try to do scroll view → content, I believe it gives you that warning. Or it may be scroll view ->viewport. It’s one of those combinations and then if you put a layout of the content or viewport under these conditions, you get warned about it.

I had a work project given to me with this problem and I had to just replace the scrollview so it had all three parts and then setup the content to have the layout and content size fitter on it for my needs.

Hmm looks like a Scrollview is what i need. I was trying to build that from hand using panels and scroll rects. Replaced my attempts with the already working ScrollView and it works (the same) but without the error message Thanks.