Force Label render data to update before reading its new UITransform dimensions.
Immediately after changing Label text, its UITransform may still contain the previous dimensions. Waiting until the next frame works, but explicitly updating render data is clearer: