mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 05:14:58 +08:00
change getClientRect calc
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user