Skip to content

Commit

Permalink
Merge pull request #1119 from dondi/cecilia-1083-hotfix
Browse files Browse the repository at this point in the history
Restrict Graph to Viewport Hotfix: Navbar
  • Loading branch information
dondi authored Oct 2, 2024
2 parents 265d7e3 + 025a6b5 commit bd823fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-client/public/js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ export var drawGraph = function (workbook) {
center();
}
updateAppBasedOnZoomValue(); // Update zoom value within bounds
// Refresh the graph so that nodes and paths are adjusted to fit in viewport
tick();
};

d3.select("#restrict-graph-to-viewport").on("click", function () {
Expand All @@ -466,8 +468,6 @@ export var drawGraph = function (workbook) {
d3.selectAll("input[name=viewport]").on("change", function () {
var fixed = $(this).prop("checked");
restrictGraphToViewport(fixed);
// Refresh the graph so that nodes and paths are adjusted to fit in viewport when restrictd to viewport
tick();
});

function center () {
Expand Down

0 comments on commit bd823fc

Please sign in to comment.