Skip to content
Snippets Groups Projects

Issue #3507987: Graph - adjust graph with

Merged Jorge Tutor requested to merge issue/entity_mesh-3507987:3507987-graph---adjust into 1.0.x
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
+ 5
2
@@ -40,7 +40,10 @@ function graphGenerate(data, settings) {
// Init Graph:
let graph = document.querySelector(selector);
let width = window.innerWidth - 100;
let graph_cstyle = window.getComputedStyle(graph);
let width = graph.clientWidth +
parseFloat(graph_cstyle.paddingLeft) +
parseFloat(graph_cstyle.paddingRight);
let height = 450;
if (settings.fullHeight) {
height = window.innerHeight - 300;
@@ -53,7 +56,7 @@ function graphGenerate(data, settings) {
const svg = d3
.select(selector)
.append("svg")
.attr("width", width)
.attr("width", "100%")
.attr("height", height);
// Init simulation:
Loading