From f86bdd648a354062656bc0c6610424ea20dcd052 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Sun, 28 Mar 2021 10:17:12 +0200 Subject: [PATCH] Setting better height --- src/diagrams/user-journey/journeyRenderer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/diagrams/user-journey/journeyRenderer.js b/src/diagrams/user-journey/journeyRenderer.js index 65874d2d5..80a2bbfef 100644 --- a/src/diagrams/user-journey/journeyRenderer.js +++ b/src/diagrams/user-journey/journeyRenderer.js @@ -71,7 +71,7 @@ export const draw = function(text, id) { drawActorLegend(diagram); bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50); - + console.log(bounds); drawTasks(diagram, tasks, 0); const box = bounds.getBounds(); @@ -103,6 +103,7 @@ export const draw = function(text, id) { const extraVertForTitle = title ? 70 : 0; diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`); diagram.attr('preserveAspectRatio', 'xMinYMin meet'); + diagram.attr('height', height + extraVertForTitle + 25); }; export const bounds = {