diff --git a/src/easeljs/display/BitmapText.js b/src/easeljs/display/BitmapText.js index 7856c0f0f..7b80f6afc 100644 --- a/src/easeljs/display/BitmapText.js +++ b/src/easeljs/display/BitmapText.js @@ -323,11 +323,12 @@ this.createjs = this.createjs || {}; } sprite.spriteSheet = ss; sprite.gotoAndStop(index); - sprite.x = x; + var spriteBounds = sprite.getBounds(); + sprite.x = x - spriteBounds.x; sprite.y = y; childIndex++; - x += sprite.getBounds().width + this.letterSpacing; + x += spriteBounds.width + this.letterSpacing; } while (numKids > childIndex) { // faster than removeChild. @@ -340,4 +341,4 @@ this.createjs = this.createjs || {}; createjs.BitmapText = createjs.promote(BitmapText, "Container"); -}()); \ No newline at end of file +}());