Scrolling frame canvas size inhierits from Scrolling frame's parent instead of Scrolling frame itself

BUG DESCRIPTION:
Scrolling frame’s canvas size is based off it’s parent, instead of scrolling frame itself

REPRODUCTION STEPS:

  1. Make ScreenGui, add Frame inside it, which will cover 0.75 of Y axis of screen. X make so you wiwll just see anything on frame.
  2. Insert ScrollingFrame into Frame you created. Set it’s Scale to Udim2.fromScale(0.5, 0.5)
  3. Set CanvasSize to uDim2.fromScale(1,1)
  4. Look at actual canvasSize:
    image

EXPECTED BEHAVIOR:
CanvasSIze should be based off ScrollingFrame itself, and not off it’s parent.

ACTUAL BEHAVIOR:
CanvasSize bases it’s size off ScrollingFrame Parent object.

WORKARAUND:
Multiply CanvasSize by ScrollingFrame’s Size.

ISSUE AREA: Engine
ISSUE TYPE: Logic, Visual
IMPACT: High
FREQUENCY: Constant

This is just an acknowledgment announcement!

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for flagging!

1 Like

Going to assume this won’t be fixed to maintain backwards compatibility. Although this is a good report, Roblox doesn’t want to break games that rely on this behavior

This behaviour is expected and is documented

The UDim2 is calculated using the parent gui’s size, similar to the regular Size property on gui objects.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.