UIAspectRatioConstraint: CoverMinSize AspectType

As a Roblox developer, it is currently too hard to make a GUI element take up all of the free space of another GUI element on both axes while keeping aspect ratio.

CoverMinSize would be the opposite of ScaleWithParentSize. It would cause the GUI to scale bigger than the size on one axis in order to be the exact size on the other axis.

ScaleWithParentSize:

The frame stays within its boundaries at all times. The DominantAxis doesn’t matter.

CoverMinSize:

The frame covers its boundaries at all times. The DominantAxis doesn’t matter.

If Roblox is able to address this issue, it would make designing GUIs easier, especially when various resolutions and image backgrounds are involved.


FitWithinMaxSize will do this for the DominantAxis. Currently, choosing the DominantAxis doesn’t work and will only produce the left-side CoverMinSize example. Unlike FitWithinMaxSize, CoverMinSize would disregard the DominantAxis entirely and always cover the space on both axes, as the above example shows.

11 Likes

Sorry about the necrobump, but it seems like this thread has been completely lost with no response for such a simple feature. I just ran into this issue while trying to add images to a custom loading GUI that is supposed to cover the screen. There are many real world use cases for this, and it definitely should be added.

1 Like