UI structure:
Main Element (Body) (AutomaticSize Y) (Size {1, 0},{0, 0})
Scrolling Frame Container (Container) (AutomaticSize Y) (Size: {0.9, 0},{0, 0})
Items (Option) (Size: {1, 0},{0, 32})
When adding a child to the Scrolling Frame Container, the size of the scrolling frame updates correctly, but the size of the main element does not until something is done to refresh its cache, such as copying the scrolling frame container, deleting it, and pasting it back into the main element, or resizing the main element.
Second example showing that the Scrolling frame element resizes as expected, but its parent doesn’t resize with it.
Expected behavior
I would expect the Main Element to grow with the immediate scrolling frame child element.
Reproduction Place:
GuiResizeBugReproduction.rbxl (71.1 KB)
*Hacky code fix that I often employ
task.defer(function()
Body.Size += UDim2.fromOffset(1, 1)
task.defer(function()
Body.Size -= UDim2.fromOffset(1, 1)
end)
end)