[Fixes #78690552] overriding setAttribute for text component so that if resize flag is true it wont set the width attribute unless it is the same as the text sprite value. This is an ugly solution, but I couldn't find another way to do it that worked with the component load sequence