This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new f08296d0c0 Restore graph expand/collapse scale (#30360)
f08296d0c0 is described below

commit f08296d0c07e4b5654b47d6ad3cfc12cf8fca28f
Author: Brent Bovenzi <[email protected]>
AuthorDate: Wed Mar 29 15:34:01 2023 -0400

    Restore graph expand/collapse scale (#30360)
---
 airflow/www/static/js/graph.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/static/js/graph.js b/airflow/www/static/js/graph.js
index bdffec9f30..38b1ae6211 100644
--- a/airflow/www/static/js/graph.js
+++ b/airflow/www/static/js/graph.js
@@ -667,7 +667,7 @@ function focusGroup(nodeId, followMouse = true) {
 
     // Calculate zoom scale to fill most of the canvas with the node/cluster 
in focus.
     const scale =
-      Math.min(Math.min(width / nodeWidth, height / nodeHeight), maxZoom) * 
0.8;
+      Math.min(Math.min(width / nodeWidth, height / nodeHeight), maxZoom) * 
0.4;
 
     // Move the graph so that the node that was expanded/collapsed is centered 
around
     // the mouse click.

Reply via email to