- Home /
Scroll view not resizing properly with dynamic content
Hello I have a problem with scroll view content not resizing properly in x-axis. The content is a vertical layout group with content size fitter. This content has a root expanding element, which can have n expanding elements and each of these can have it's own child expanding elements and so on... These expanding elements are also vertical layout groups, and each expand element can be expanded to display it's children, these elements also have names that can be of various length. The problem is that with each expansion a little offset from left side is addded and after some depth the right side of the content is reached and overflown becouse the content does not resize to fit it. That also means that horizontal scrollbar is not added and the user cannot see the expanded content properly. The vertical expansion and vertical scrollbar works fine. I mostly have problem with text mesh pro, to resize and fit content of the name becouse I cannot use content size fitter when I am child of a layout group. Please help me with the settings of the expanding layout groups or point me to some other approach I should try instead.