From 62e8c7eced445674d1ae89bb10eb9635ac43cde4 Mon Sep 17 00:00:00 2001 From: Moritz Wicenec Date: Thu, 24 Feb 2022 15:47:21 +0800 Subject: [PATCH] fixed a margin issue for the dag graph --- daliuge-translator/dlg/dropmake/web/graph_init.js | 4 ++-- daliuge-translator/dlg/dropmake/web/src/main.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daliuge-translator/dlg/dropmake/web/graph_init.js b/daliuge-translator/dlg/dropmake/web/graph_init.js index f55858608..ed19928df 100644 --- a/daliuge-translator/dlg/dropmake/web/graph_init.js +++ b/daliuge-translator/dlg/dropmake/web/graph_init.js @@ -50,7 +50,7 @@ function graphInit(graphType){ $("#" + graphType + "Button").addClass("active") //hide graph change buttons when they dont make sense locks the graph to sankey if node count is over 300 - if (nodeCount > 300) { + if (nodeCount > 600) { $("#view-mode-buttons").hide(); } else { $("#view-mode-buttons").show(); @@ -308,7 +308,7 @@ function echartsGraphInit(type, data) { function graphSetup(type, chart, graphData, graphDataParts) { // don't show labels if there are too many nodes. - var show_labels = (graphData.nodeDataArray.length > 320) ? false : true; + var show_labels = (graphData.nodeDataArray.length > 350) ? false : true; chart.setOption({ tooltip: { diff --git a/daliuge-translator/dlg/dropmake/web/src/main.css b/daliuge-translator/dlg/dropmake/web/src/main.css index 9b926de4b..826a37e24 100644 --- a/daliuge-translator/dlg/dropmake/web/src/main.css +++ b/daliuge-translator/dlg/dropmake/web/src/main.css @@ -416,8 +416,8 @@ width:auto; height:auto; position: absolute; - top: 80px; - bottom: 25px; + top: 0px; + bottom: 0px; left:0px; right:0px; }