GUI Scrolling Frame Sizing Bug

Behavior:
I have a scrolling frame, with autocanvassize set to XY. Under that, I have other scrolling frames with various auto size properties under them enabled. What happens is the background of the child scrolling frame disappears after you scroll partially through it. This has to do with roblox recognizing the size of that frame as much smaller then it actually is. The white box inside the first nested scrolling frame has its size set to (1,0,0,10) - this should span the entire width of the scrolling frame, but it doesnt because roblox is seeing that scrolling frame as smaller for some reason. I have attached a video of the bug below, along with the file that can be used to recreate this bug. Any help/ideas/workarounds are appreciated.

Video of Bug

Video Explaining Bug

Scrolling Bug.rbxm (20.4 KB)

Intended Behavior:
Parent frame with “Clips Descendants Enabled” will only clip the portion of the child frame that is OUTSIDE of the parent frame.

2 Likes

try to disable “ClipsDescendants”(from “Groups”)

This would work, but I need it enabled because this is just a small part of a much bigger UI design. If I disable this then the descendants of the scrolling frame don’t clip at all.

Try using “UI Aspect Ratio Constraint” instead of “Automatic Size”. The problem is in Automatic Size, because Frame size = 0

There is no set ratio I want though. Im looking for automatic size based on the containers descnedants, not a specific ratio. Also I think the problem is not frame size being 0, because with automatic size enabled, the size of the UI just acts as a minimum constraint. The problem is that roblox doesn’t recognize the scale of that GUI. The scale is dissociated from the offset. Roblox lists the absolute size properly (in pixels), but it thinks the entire scale of the UI is only a fraction of that number.

@staff Do you think we could move this category into #bug-reports please? I just read through all of the documentation and I believe that this behavior is not intentional.

Try to remove Padding and check if it has something to do with Padding. Is the Transparency of the Frame changing to 1?

Unrelated to padding, same behavior with and without. Listed transparency value does not update.

1 Like

Hey, I am having this exact issue currently. Did you ever end up finding a fix?

Nevermind, I was able to find a work around to my issue. If you still are having this issue, or anyone else who is reading this is, reach out to me and I can provide my work around. Too long to explain here.