Edit: the core of this module was redundant, as UIGridLayouts and UIListLayouts have a read-only property for AbsoluteContentSize. I updated the module to use these properties as well as added support for UIListLayouts, and x-axis auto sizing.
I didn’t totally read through this, but can’t you just listen to .Changed on the UIGridLayout, and every time it’s changed, set the Y of the canvas to UIGridLayout.AbsoluteContentSize.Y?
as a bonus you can also add a UIPaddingConstraint that shifts the content over once the scrollbar appears to keep everything constant
I didn’t totally read through this, but can’t you just listen to .Changed on the UIGridLayout, and every time it’s changed, set the Y of the canvas to UIGridLayout.AbsoluteContentSize.Y?
as a bonus you can also add a UIPaddingConstraint that shifts the content over once the scrollbar appears to keep everything constant
If your UIPadding value is the same as your scrollbar’s width, then couldn’t you use VerticalScrollBarInset? If you set it to Scrollbar in Studio, then it will automatically make the canvas size smaller on the X axis when the vertical scrollbar is shown. This can make the needed code here even shorter: