This bug overrides the default scaling behavior of frames under an ACS ScrollingFrame, and will break existing unit conversion plugins that account for ACS ScrollingFrames in the cases where this bug appears.
This bug will exclusively appear in cases where only 1 canvas axis is automatically sized, while the other one has a size greater than the corresponding absolutesize of the frame (0.25+).
Scaling relative to AbsoluteSize on both axes is essential for dynamic behavior that AutomaticCanvasSize enables.
Repro File:
Repro.rbxl (72.5 KB)
Expected behavior
AutomaticCanvasSize ScrollingFrame Frames retain their default ACS scaling behavior relative to both axes of AbsoluteSize regardless of if affected by a UILayout.
A private message is associated with this bug report
Hi @Arctic_Vibes - I think this is an unfortunate interaction with how scaling works in ScrollingFrame and its relation to CanvasSize. If you take ACS out of the equation, scaled sizes apply differently depending on the value of CanvasSize:
1/ Scale to ScrollingFrame.Size is CanvasSize <= ScrollingFrame.Size
2/ Scale to CanvasSize if CanvasSize > ScrollingFrame.Size
So I think what’s happening here is that ACS changes the CanvasSize and therefore scaled-size elements are impacted.
I believe the underlying cause of this bug is in relation to the inconsistent handling of ACS scaling between different UI elements/properties.
As outlined in the private message, this bug specifically is undoutably linked to the handling of UILayout padding scaling behavior overriding the ACS Size scaling behavior of GuiObject frames.
To elaborate on the inconsistency with ACS scaling:
- GuiObject Size scales based on both AbsoluteSize axes when ACS is enabled
- However, GuiObject Position, and UILayout Padding/CellPadding, seem to take a hybrid scaling approach, where only the relevant ACS axes are scaled relative to AbsoluteSize, with the non-ACS axes retaining their default scaling behavior relative to CanvasSize
- Seeing as UILayouts have direct influence on their associated frames, it becomes undeniable that the differing UILayout approach to ACS scaling overrides size’s approach to ACS scaling
- Furthermore, UIPadding does not change scaling behavior with ACS at all, creating a further inconsistency in relation to padding ACS scaling
I believe that the original intention of ACS scaling was to allow elements within the ScrollingFrame to scale off AbsoluteSize, in order to enable dynamic CanvasSize use cases without logical resizing overhead. However, it is likely that the implementation of this original vision was misinterpreted throughout its rollout.