diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/App.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index 4f93cee..ecf2948 100644 --- a/src/App.vue +++ b/src/App.vue @@ -279,7 +279,11 @@ export default defineComponent({ while (node.parent != this.activeRoot){ node = node.parent!; } - await this.onNonleafClickHeld(node, true); + // Hide ancestor + // Note: Not using onNonleafClickHeld() here to avoid a relayoutWithCollapse() + LayoutNode.hideUpward(node, this.layoutMap); + this.activeRoot = node; + // Try relayout this.updateAreaDims(); success = tryLayout(this.activeRoot, this.tileAreaDims, this.lytOpts, lytFnOpts); } |
