change getClientRect calc

This commit is contained in:
Anton Lavrenov
2017-08-01 22:16:44 +02:00
parent 4b53436a24
commit e51e675c86
6 changed files with 64 additions and 11 deletions

View File

@@ -277,7 +277,7 @@ suite('Line', function() {
layer.add(poly);
stage.add(layer);
var rect = layer.getClientRect();
var rect = layer.getClientRect({ relativeTo: stage });
assert.deepEqual(rect, {
x: -100,
y: 0,