Simplify nodesByPos fixup
This commit is contained in:
@@ -37,6 +37,9 @@ class LayoutGroup {
|
||||
for (let node of this.nodes) {
|
||||
node.restorePos();
|
||||
}
|
||||
for (let node of this.nodes) {
|
||||
this.nodesByPos_.set(node.pos, node);
|
||||
}
|
||||
}
|
||||
|
||||
moveBy(offset) {
|
||||
|
||||
Reference in New Issue
Block a user