AutomaticSize not updating when object is set to be visible

AutomaticSize does not refresh itself when the object it is updating is set to render.

In this first example, the white modal is set to have AutomaticSize enabled based off of a UIListLayout. It is designed to resize with the “Confirm Release” text label and the buttons “Cancel” and “Confirm”. This won’t update itself until something manually updates the state of the UI (such as a button position changing or mouse moving over it)

In this second example, we are using AutomaticCanvasSize for this ScrollingFrame. The contents are populated while the whole frame is set to not be visible. You can also tell in one of the tiles there is a vertical thin black line with some text in it that says “Ride”; this is also using AutomaticSize X. As soon as the tile is clicked, you can see the scrolling frame update its canvas size.

These small issues effectively prevent us from using AutomaticSize in our game.

27 Likes

Hi @Usering - thank you for the report! I created a ticket to investigate this issue. We’ll unblock you and get this resolved soon!

10 Likes

This issue has caused multiple menus in my (in development) game to break.

image

image

3 Likes

Awesome, would you happen to have an ETA on this fix?

Just following up since this is blocking us from implementing AutomaticSize into our games

1 Like

Hey @Usering , we are currently working on fixing this issue. If possible, do you mind providing us with a place file or rbxm file where we can reproduce the issue also do some testings within? Thanks.

1 Like

Any updates on the status of this? I can also provide some samples of where AutomaticSize does not update on property change from None to Y and back. See the following gif: https://i.imgur.com/JGQhTAM.gif

In the gif, the chevron on the top right triggers a change to the AutomaticSize of the scrolling frame containing the row items. In-fact, both AutomaticSize and AutomaticCanvasSize are both changed here.

3 Likes

I am also facing a similar issue with AutomaticCanvasSize.

I provided attachments below to give a better visual on the situation.

- AutomaticCanvasSize not working
https://gyazo.com/2819d1dd130629175b8e0e1d89ab3940

- AutomaticCanvasSize working
https://gyazo.com/96d2f4afd622a81668dba689810d52cd

Reproducing the issue
I’ve provided a file below since explaining each step would be a bit too hefty.

AutomaticCanvasSize_Bug.rbxl (38.7 KB)

9 Likes

Hi, is there an ETA on when this will be fixed? Thank you.

3 Likes

Hi @Aurified , the fix should be in soon around this week. Thank you

10 Likes

Hi, has the update been rolled out yet? It seems like the AutomaticCanvasSize feature isn’t working at all now.

1 Like

Hi @Aurified , sorry to hear that it is still not working for you. Our recent update is a little different from the AutomaticCanvasSize issue, we will be taking a further looking at the case you provided.

2 Likes

This issue has still not been fully addressed.
When text is set before an object with AutomaticSize enabled is made visible, it will not update the size when it becomes visible.

AutomaticSize is a feature that has a lot of potential and it’s a shame to see it released broken and never fixed fully.

Here is a video of a case we are using it. You can see the text labels are set to be a width of 0 pixels, and have AutomaticSize set to “X”. When I update its state by toggling a property like RichText it does update. It needs to be automatic.

3 Likes

This issue still keeps happening. The scroll bar doesn’t seem to appear and function until a child in the frame is made visible/not visible or until VerticalScrollBarInset is changed to “ScrollBar”. I really hope this issue is investigated and fixed soon, I don’t want to write extra code or redo existing one just to bypass this issue.

4 Likes

@CharlieGordonnn While you’re looking into it, I’d appreciate if you’d also have fixed the padding with scale for uilistlayouts because, well, see for yourself:


image - This one is with automatic canvas size Y

1 Like

It appears that I’m having a similar issue: ScrollingFrame (+ UIGridLayout?) working funky as of a week or so

2 Likes

Looks like we got a Studio update, so I’m guessing a flag was flipped for this.

Doesn’t seem to be fully resolved. We use automatic size + ui list/grid layout. The game starts with this frame hidden and then made visible. You can see they have to have their properties changes to be recalculated. These frames have their size set to 0, so they should have no default or constrained size.

o8W8RCOF6N

The “Core” frame needs to be hidden. All other frames have to be set to be visible. Toggle visibility on core to see it.
automatic size grid repro.rbxl (35.1 KB)

It also happens with text labels on mobile. This one has its width size set to 0 as well. Notice the red button before the window opens has no text, and then after it shows “0/3”
https://cdn.discordapp.com/attachments/816184919445209148/862455829676163153/RPReplay_Final1625695773.MP4

I’m also noticing problems with AutomaticSize. A couple months ago I coded a context (hover) menu in my game with AutomaticSize, and what previously worked no longer works and behaves very weirdly. Had to disable it.

1 Like

I can as well confirm this occurs with elements that are not visible all the time.

I coded and designed a context menu, worked fine, but after I logged back into the place and made it visible the alignment of the contents was all messed up.

The only workaround I have is to avoid using AutomaticSize, at least until it gets fixed, and instead implement your own solution. AutomaticSize (along with AutomaticCanvasSize) just seems to be very buggy right now and isn’t worth the hassle, not to mention mixing it with Scale has some undesired effects.

3 Likes

I managed to get it to work again by making all Guis inside invisible menus transparent rather than ticking Visible=False. Bit of a code smell, but it works for now.

1 Like