Skip to content

Commit

Permalink
Restore graph expand/collapse scale (apache#30360)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored Mar 29, 2023
1 parent 05fe24e commit f08296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/static/js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f08296d

Please sign in to comment.