Skip to content

Commit

Permalink
修复解构写法
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanning.bzn committed Oct 28, 2019
1 parent 9df6ebf commit 6add730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/do-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = (root, options, layoutAlgrithm) => {
}
}
// fixed root position, default value is false
const { fixedRoot } = options;
const fixedRoot = options.fixedRoot;
if (!fixedRoot) {
root.translate(-(root.x + root.width / 2 + root.hgap), -(root.y + root.height / 2 + root.vgap));
}
Expand Down

0 comments on commit 6add730

Please sign in to comment.