diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/App.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/App.vue b/src/App.vue index 79743ac..1dd0b93 100644 --- a/src/App.vue +++ b/src/App.vue @@ -384,13 +384,14 @@ export default defineComponent({ setTimeout(() => this.expandToNode(name), this.uiOpts.tileChgDuration); return; } - // Attempt expand-to-view on ancestor just below activeRoot + // Attempt expand-to-view on an ancestor if (layoutNode == this.activeRoot){ console.log('Screen too small to expand active root'); this.modeRunning = false; return; } - while (true){ + const MAX_ANCESTOR_DIST = 5; + for (let i = 0; i < MAX_ANCESTOR_DIST; i++){ if (layoutNode.parent! == this.activeRoot){ break; } |
