mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
correct transformer on scaled parent
This commit is contained in:
parent
0343f525dc
commit
64cfd8e934
8
konva.min.js
vendored
8
konva.min.js
vendored
File diff suppressed because one or more lines are too long
@ -348,7 +348,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var absPos = this.findOne('.top-left').getAbsolutePosition();
|
||||
var absPos = this.findOne('.top-left').getAbsolutePosition(
|
||||
this.getParent()
|
||||
);
|
||||
|
||||
x = absPos.x;
|
||||
y = absPos.y;
|
||||
@ -383,6 +385,7 @@
|
||||
},
|
||||
|
||||
_fitNodeInto: function(attrs) {
|
||||
console.log(attrs);
|
||||
this._settings = true;
|
||||
var node = this.getNode();
|
||||
if (attrs.rotation !== undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user