paperjs/paper.js — Issue #63: text position is shifted
Author: matthiasstock
Created: 2011-12-09 21:43:29+00:00
State: open

# Using nightly build, Date: Wed Dec 7 12:45:04 2011 +0100

Consider a layer containing a path and a text:

```javascript
var myLayer = new paper.Layer();

var dot = new paper.Path.Circle( new paper.Point(50, 50), 40 );
dot.strokeColor = 'black';
myLayer.addChild( dot );

var text = new paper.PointText( 50, 50 );
text.content = 'My Caption';
myLayer.addChild( text );
```

When re-positioning this layer, the text positioning goes wrong.

```javascript
var tool = new paper.Tool();

tool.onMouseDrag = function( event ) {
myLayer.position = myLayer.position.add( event.delta );
}
```