TextBounds affecting UIPageLayout?

For some reason, this line of code is affecting my ListLayout order. With this code, here’s how the List looks.

local CostSize = Button.Cost.TextBounds.X

There’s a huge gap, and the buttons are in weird spots. If I comment out just those 2 lines, then the page looks normal


Why are those lines causing a change in the ListLayout? As far as I’m aware, they have nothing to do with, and I’m purely just getting numbers

2 Likes

Could you send some more code? It’s difficult to help you just by what you explained.

That’s all the code needed tho. It’s literally that one line that affects the entire ListLayout. If I comment out that one line then it works fine

Reading a property shouldn’t effect the UIPageLayout. This is probably an engine bug and should be reported.

1 Like