why does changing the text of a Text change its position?

I’m trying to simply create 3 lines of text, left-justified, like so:[/lua]
local txtOne = display.newText( localGroup, “First Line”, 100, 400, “Arial”, 24)
local txtTwo = display.newText( localGroup, “Second Line”, 100, 425, “Arial”, 24)
local txtThree = display.newText( localGroup, “Third Line”, 100, 450, “Arial”, 24)[/lua]

They are positioned properly initially. However, when I later update the text property for each line like so:

[lua]txtOne.text = “new Text”[/lua]

then the positions change. The first line appears to be around x=100, but then the 2nd and third lines appear to be centered about 50 pixels to the right, and not even centered or left justified at the same point.

The docs are pretty clear on this, and it seems like it should be simple. Am I missing something obvious? I know the docs say the local origin and reference point are set to the center. Maybe I’m not understanding how to work with that.

I also tried setting the reference point on these texts to TopLeft and then re-setting the x to 100 after updating the text property, but they still didn’t move.

I am using Director, and I initially posted this to that forum as well. Sorry if that double post is bad form, but the issue seemed to cross boundaries so I thought I’d ask here as well. I added more info to this post, after more testing. [import]uid: 82378 topic_id: 24802 reply_id: 324802[/import]

Take a look at this thread. It explained a lot to me:

https://developer.anscamobile.com/forum/2011/08/27/text-alignment-bug

Naomie [import]uid: 67217 topic_id: 24802 reply_id: 100598[/import]