Skip to content

Commit

Permalink
revert unnecessary changes
Browse files Browse the repository at this point in the history
Signed-off-by: jamal-khey <[email protected]>
  • Loading branch information
jamal-khey committed Dec 11, 2024
1 parent 3eeedc8 commit 1e42865
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ export class NetworkAreaDiagramViewer {
this.container.innerHTML = '';

// set dimensions
this.setOriginalWidth(dimensions.viewbox.width);
this.setOriginalHeight(dimensions.viewbox.height);
this.setWidth(Math.max(minWidth, Math.min(dimensions.viewbox.width, maxWidth)));
this.setHeight(Math.max(minHeight, Math.min(dimensions.viewbox.height, maxHeight)));
this.setOriginalWidth(dimensions.width);
this.setOriginalHeight(dimensions.height);
this.setWidth(dimensions.width < minWidth ? minWidth : Math.min(dimensions.width, maxWidth));
this.setHeight(dimensions.height < minHeight ? minHeight : Math.min(dimensions.height, maxHeight));

// set the SVG
this.svgDraw = SVG()
Expand Down

0 comments on commit 1e42865

Please sign in to comment.