Text boxes randomly become skinnier

edited May 2016 in Python Mode

I’m trying to put some justified-left text in a text box that is centered horizontally. I thought this would work:

text( message, width / 2 - w / 2, height / 3 + 50, w, height )

(w represents the width of the text box.)

And it does work, but only sometimes — other times, the right side of the text box moves to the left, making the box skinnier and off-center. I see no pattern to how this happens, besides the fact that once it happens once, it happens every time afterwards. This is true across multiple classes that do this same thing. Do you know why this might happen?

Tagged:

Answers

Sign In or Register to comment.