diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-11 13:53:33 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-11 13:53:33 +1000 |
| commit | e77845075eaa813b5c8bf765023e0423f4327780 (patch) | |
| tree | 90c7a611e063e72e9de909be529c49194f463da4 /src/App.vue | |
| parent | 1be08d76dd237c67df16bdefc524e606bfba9312 (diff) | |
Fix auto-hide sometimes auto-collapsing an ancestor
Diffstat (limited to 'src/App.vue')
| -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); } |
