aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMtBntChvn <[email protected]>2026-02-20 23:34:26 +0000
committerMtBntChvn <[email protected]>2026-02-20 23:34:26 +0000
commit8661428fa97cbb1f57ca7dee2cfa00fd945fe30a (patch)
tree9022f3252cd97dab75b3778cacfa5a39d8966ba6
parentreduce expansion spread for tighter graph layout (diff)
downloadzen-8661428fa97cbb1f57ca7dee2cfa00fd945fe30a.tar.xz
zen-8661428fa97cbb1f57ca7dee2cfa00fd945fe30a.zip
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) <[email protected]>
-rw-r--r--src/zenserver/frontend/html/util/graphengine.js1
1 files changed, 1 insertions, 0 deletions
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
{