mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
correct transformer on scaled parent
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user