Skip to content

Commit f08296d

Browse files
authored
Restore graph expand/collapse scale (#30360)
1 parent 05fe24e commit f08296d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/www/static/js/graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ function focusGroup(nodeId, followMouse = true) {
667667

668668
// Calculate zoom scale to fill most of the canvas with the node/cluster in focus.
669669
const scale =
670-
Math.min(Math.min(width / nodeWidth, height / nodeHeight), maxZoom) * 0.8;
670+
Math.min(Math.min(width / nodeWidth, height / nodeHeight), maxZoom) * 0.4;
671671

672672
// Move the graph so that the node that was expanded/collapsed is centered around
673673
// the mouse click.

0 commit comments

Comments
 (0)