UIGridLayout inconsistent padding

Hello, I have a UIGridLayout in a scrolling frame and all the UI elements inside look find. When I change the visible property, the padding is suddenly inconsistent and the UI elements start overlapping each other. Anyone know why?
(I am using this in a plugin)

I made my script print the CellPadding and it seems to be constant
image

Before:
image

After:
image

Steps to replicate:

  1. Make a Scrollingframe with UIGridLayout

  2. Add UI objects into the scrolling frame

  3. Use a script to toggle the UI objects’ Visible property, the padding should change immediately even if you do Visible = true on a visible object

Repro File
repro.rbxm (7.4 KB)

1 Like

Can you include a repro file and explicit steps for the file?

1 Like

Sure, going to update the post!

I’m not able to reproduce this issue; can you supply the code you were using to accomplish this?

Sure, I’ll send it later. I was actually using a loop to insert image IDs into the scrolling frame, and then when I attempt to change the Visible property using another loop it starts overlapping. (Not sure if the textbox has anything to do with it)

Also, this happened inside my plugin in studio so that might be affecting it.

Apologies, I seem to have fixed it. The issue causing the inconsistent padding was my auto CanvasSize script.

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