diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-11 11:20:38 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-11 11:20:38 +1100 |
| commit | 60a299619fd89c7815d4cf58176d5ff9f35765c7 (patch) | |
| tree | be540d983d78e3abaaf0947ba81a66df47afccd4 /src/components | |
| parent | 97ddb2c84b1eeb96d476f3214c1f9be96cfc7d77 (diff) | |
Make rect-layout empty-space-shifting happen while laying out each cell
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/TileTree.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue index 34a2cf6..342ac92 100644 --- a/src/components/TileTree.vue +++ b/src/components/TileTree.vue @@ -12,7 +12,7 @@ function preprocessTol(tree){ preprocessTol(tol); //tol-node format: {name: string1, children: [node1, ...]} -import {staticSqrLayout, staticRectLayout, sweepToSideLayout, layoutInfoHooks, shiftEmpty} from '/src/layout.js'; +import {staticSqrLayout, staticRectLayout, sweepToSideLayout, layoutInfoHooks} from '/src/layout.js'; let LAYOUT_FUNC = sweepToSideLayout; export default { @@ -84,7 +84,6 @@ export default { console.log('Unable to layout tree'); return false; } else { - shiftEmpty(layout); this.applyLayout(layout, this.tree); return true; } |
