azkaban-aplcache
Changes
src/web/js/azkaban.flow.view.js 5(+5 -0)
Details
src/web/js/azkaban.flow.view.js 5(+5 -0)
diff --git a/src/web/js/azkaban.flow.view.js b/src/web/js/azkaban.flow.view.js
index 71c11fc..871a6d0 100644
--- a/src/web/js/azkaban.flow.view.js
+++ b/src/web/js/azkaban.flow.view.js
@@ -243,6 +243,11 @@ azkaban.SvgGraphView = Backbone.View.extend({
this.drawEdge(this, edges[i]);
}
+ bounds.minX = bounds.minX ? bounds.minX - 200 : -200;
+ bounds.minY = bounds.minY ? bounds.minY - 200 : -200;
+ bounds.maxX = bounds.maxX ? bounds.maxX + 200 : 200;
+ bounds.maxY = bounds.maxY ? bounds.maxY + 200 : 200;
+
this.graphBounds = bounds;
this.resetPanZoom();
},