TextBounds doesn't reflect accurately until the frame after it's Instance is parented

Title is self-explanatory. When listening to the changing behavior of the TextBounds property, the first case of TextBounds changing always returns 0,0. In order to fix this, you have to defer to the next frame to listen for the correct TextBounds.

image

textbounds-doesnt-update-until-the-frame-after-its-instance-is-parented.rbxl (57.9 KB)

Expected behavior

TextBounds should reflect properly in all cases on the task/thread pipeline.

5 Likes

Hi @hello42 , thanks for your report!. It seems this is not happening any more, could you check please? this is my ouput:

  15:23:51.048  Multiple StyleLinks under RobloxGui may result in undefined behavior  -  Studio
  15:23:51.135  bad 210, 100  -  Client - LocalScript:14
  15:23:51.136  good 210, 100  -  Client - LocalScript:9
  15:23:51.156  bad 229, 100  -  Client - LocalScript:14
  15:23:51.156  good 229, 100  -  Client - LocalScript:9
  15:23:56.124  bad 193, 100  -  Client - LocalScript:14
  15:23:56.124  good 193, 100  -  Client - LocalScript:9
  15:24:01.124  bad 221, 100  -  Client - LocalScript:14
  15:24:01.124  good 221, 100  -  Client - LocalScript:9
...

I’m closing the issue as we didn’t hear back and it seems the problem was fixed. Please let us know if the problem persist on your end. Thanks!

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