We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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?
Answers
You change textAlign or w somewhere?
I have
textAlign( LEFT, TOP )
andso that it fits inside whatever window width I choose.
Hard to say
I meant you change it maybe accidently
I don’t think so, but I’ll check.
No, I didn’t.