From 8661428fa97cbb1f57ca7dee2cfa00fd945fe30a Mon Sep 17 00:00:00 2001 From: MtBntChvn <93671382+MtBntChvn@users.noreply.github.com> Date: Fri, 20 Feb 2026 23:34:26 +0000 Subject: focus view on expanded node and fit children after expansion Call fit_subtree(node) after layout completes in expand_node so the view zooms to show the expanded node and all its new children. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/zenserver/frontend/html/util/graphengine.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zenserver/frontend/html/util/graphengine.js b/src/zenserver/frontend/html/util/graphengine.js index 56f825cdf..009a568c2 100644 --- a/src/zenserver/frontend/html/util/graphengine.js +++ b/src/zenserver/frontend/html/util/graphengine.js @@ -613,6 +613,7 @@ export class GraphEngine remove_overlaps(this._nodes, 15, 20); this.rebuild_edge_index(); + this.fit_subtree(node); } finally { -- cgit v1.2.3