AutomaticSize not updating when object is set to be visible

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

Sorry for the inconvenience, we are currently working to fully resolve this issue.

3 Likes

Was working on a small info GUI for a community place and ran into this bug and found this post.

First, a few things I noticed not noted in the past posts that might be helpful:

  • If you update the GUI object so the scaling fixes itself, the scaling will be correct even if you then make the GUI invisible again and toggle it back, until the player resets.
  • The GUI elements can still correct themselves if the player changes their window size, though not always (wasn’t really able to figure out why it worked sometimes on all elements, and sometimes one would remain missized)
  • The same issue seemed to happen in studio sometimes too? I’d occasionally have to re-parent the GUIs to where they were supposed to be for them to adjust their size, but it wasn’t consistently happening enough for me to notice any real pattern.
  • AutomaticSize elements seem to freak out and miscalculate to be way too big when put onto a scrolling frame.

And then finally, my quick fix for any devs being affected by the problem, a small function resizing the direction that is set to automatic from 0 to 1 whenever that part of the GUI becomes visible is a fairly quick and easy solution, albeit not very elegant. Might also not be too practical with some of the more complexly structured GUIs people make.

[Edit: I should note this doesn’t work for the AutomaticCanvasSize problem also mentioned, but toggling it on and off works for it]

The issue with AutomaticCanvasSize mentioned above is still happening even today, I hope you guys fix it soon.

1 Like

Hi @Unity_456 , the fix is already in testing, hopefully we will have an update soon.

10 Likes

AutomaticSize is still bugging out

In this case I’m setting the frame to be visible then changing the size to Udim2.new(0, 1, 0, 1) to force it to update. Before it worked fine but recently it has become broken again…

2 Likes

This feature (AutomaticSize) also does not work properly with RichText enabled…

2 Likes

AutomaticSize doesn’t work too, I have to set it to None, then set it to X again for it to refresh

1 Like

I’ve been having this issue for months, and I have just seen this forum post. When is this going to be fixed? It’s still affecting many games including mine.

4 Likes

Please provide us with an update. This is supposed to be a live, fully-functioning feature—it’s been broken for months (if you dare set your guis Visible property…)

3 Likes

I’m also still experiencing this issue with AutomaticSize.

1 Like