ScrollingFrames do not allow scrolling if the CanvasSize - Size is <= than an UIPadding's total padding on an axis

Describe the bug. Describe what is happening when the bug occurs. Describe what you would normally expect to occur.

If the amount of area that can be scrolled in a certain axis (i.e. the Y axis) is less or equal to the amount of total padding created by a UIPadding object (i.e. top + bottom), scrolling is disabled, even though the padding’s distance should be able to be scrolled. If this isn’t the case, full scrolling (across the entire padding’s distance) is suddenly possible.

For example, a ScrollingFrame with a CanvasSize of {0, 0, 0, 200} and a Size of {0, 400, 0, 100} should be able to scroll down by 100 pixels. However, inserting a UIPadding with total padding (top + bottom) of 100 (50 + 50) stops allowing scrolling vertically. Increasing the CanvasSize to {0, 0, 0, 201}, decreasing one of the paddings to 49, or decreasing Size to {0, 0, 0, 99} will allow scrolling again.

Expected behavior is that the UIPadding simply has no effect on the scrolling capabilities at all, only Size and CanvasSize should affect this.

See video/repro below.

How often does the bug happen (Everytime/sometimes/rarely)? What are the steps that reproduce the bug? Please list them in very high detail. Provide simple example places that exhibit the bug and provide description of what you believe should be the behavior.

See above.

Repro: scrollingframebug.rbxl (21.7 KB)

Where does the bug happen (www, gametest, etc) Is it level-specific? Is it game specific? Please post a link to the place that exhibits the issue.

Would a screenshot or video help describe it to someone? If so, post one.

https://streamable.com/0jfaf

For graphics bugs, it is sometimes helpful to know your system specs, especially graphics card.

Win 10

When did the bug start happening? If we can tie it to a specific release that helps us figure out what we broke.

Has been an issue for several months at least, probably longer.

Anything else that you would want to know about the bug if it were your job to find and fix it.

n/a

2 Likes

Just ran into this bug as well.

Seems that the only solution right now (when calculating CanvasSize based on a grid’s AbsoluteContentSize) is to add 2x the padding value + 1 to the CanvasSize, leaving a bunch of empty space at the bottom of the canvas.

2 Likes