Hello,
I have been messing with the older Unity workflow for UI elements (not the new preview system) and I can not understand how or why some of these things are happening.
For example,
I have a scroll rect, and under that a viewport, and under that a content object, like the documentation suggests.

scroll rect - width controlled by parent layout group (330)
viewport - set to “stretch”
content - set to “stretch”
Then I put a vertical layout component on my content div, and set the vertical layout to control the child width and force expand the width. So you would think… the result would be 330 right? since the parent is 330, and were set to stretch…
However the result is 373… and I can not for the life of me figure out why.
I’ve tried all different combos of layout elements, content size fitters and prefered vs min settings… but for whatever reason, stretch on something thats 330… makes it think its child needs to be 337 and bleed outside of the viewport…
Anyone know whats going on here?
Thanks


