mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 05:14:58 +08:00
Fix wrong internal caching of absolute attributes. fix #843
This commit is contained in:
@@ -123,13 +123,14 @@ export abstract class Container<ChildType extends Node> extends Node<
|
||||
}
|
||||
return this;
|
||||
}
|
||||
var child = arguments[0];
|
||||
var child = children[0];
|
||||
if (child.getParent()) {
|
||||
child.moveTo(this);
|
||||
return this;
|
||||
}
|
||||
var _children = this.children;
|
||||
this._validateAdd(child);
|
||||
child._clearCaches();
|
||||
child.index = _children.length;
|
||||
child.parent = this;
|
||||
_children.push(child);
|
||||
|
||||
Reference in New Issue
Block a user