UIScale breaking AutomaticSize

We have a problem with UIScale in combination with TextLabels and AutomaticSize. Scale 1 works fine but as soon as we change it the AutomaticSize starts to misbehave. We’ve seen multiple related threads here, where staff have made fixes but this issue remains. We’ve created a simple standalone scenario as seen in the screenshots.

image

1.0 Scaling

1.5 Scaling

Expected behavior

That the automatic scaling would work as intended even though the UIScaling is applied.

A private message is associated with this bug report

5 Likes

Hi @Pomisze thank you for reporting this issue. As you mentioned there are known issues with automatic size and scaling (both UI scale and UDim2 scaling) that are problematic.

For now I can reach out to one of our engineers to ask for a viable workaround. There may be a solution that involves flex layout + automatic size that could achieve what you’re looking for.

1 Like

Hi @Pomisze,

Thanks for the bug report and the minimal repro file! As @DrRanchDressing mentioned we are tracking multiple AutomaticSize + UIScale bugs and we are aware of the issue. We’ll let you know when we have any updates on this!

In the meantime, I have come up with a few ideas for temporary workarounds. Would any of these options work for your usecase?

  • Setting TextScaled=True on the TextLabel. This should prevent the text overflow problem.

  • Design the UI without AutomaticSize, so the TextLabels have fixed sizes. Then, set TextScaled=True so the text fills the available space, and use UIScale to grow/shrink the entire UI.

3 Likes

Hi @DrRanchDressing @stadium_parkour, thanks for the response!

We’re most likely going to look into a scriptable solution instead if that’s the case, we can try the provided solutions but as we’re trying to balance out the sizing between devices and still keeping general UI flexibility we’ll most likely end up with a script to manage it anyways :slight_smile:

Thank you for your time. Looking forward to more UI editing tools/solutions!

2 Likes

ChangedStructure.rbxl (61.0 KB)

Hi, don’t know if this would help with the case. In this modified structure, a parent frame with 0.4 x scale that constrain the bounds for text layout and a second parent with 0.8 scale to allow the 0.1 scale padding on individual side. An extra ListLayout is added with center alignment to keep label centered. This structure would stably scale with UIScale. Unfortunately our automatic size system could not stably constrain text with scale settings and anchor points as it confuses with the max/min bounds.

This issue happened to be too, and now its impossible for me to make a dynamic quickbar that scales to all devices.

Quickbar looks good on the original resolution, can add/remove buttons dynamically


However on any smaller resolution this happens:

This is really infuriating and I cant seem to get it fixed by using UIflex.

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