mirror of https://github.com/CIRCL/lookyloo
chg: Improve margins
parent
bd338d1ce2
commit
187422b36b
|
@ -3,15 +3,15 @@
|
||||||
|
|
||||||
// Set the dimensions and margins of the diagram
|
// Set the dimensions and margins of the diagram
|
||||||
let margin = {
|
let margin = {
|
||||||
top: 20,
|
top: document.getElementById('tree-details').clientHeight,
|
||||||
right: 200,
|
right: 200,
|
||||||
bottom: 30,
|
bottom: 30,
|
||||||
left: 90
|
left: 90
|
||||||
};
|
};
|
||||||
let width = 960 - margin.left - margin.right;
|
|
||||||
let height = 1000 - margin.top - margin.bottom;
|
|
||||||
let menuHeight = document.getElementById('menu').clientHeight;
|
|
||||||
|
|
||||||
|
let menuHeight = document.getElementById('menu').clientHeight;
|
||||||
|
let width = 960 - margin.left - margin.right;
|
||||||
|
let height = menuHeight * 2;
|
||||||
|
|
||||||
let node_width = 10;
|
let node_width = 10;
|
||||||
let node_height = 55;
|
let node_height = 55;
|
||||||
|
|
Loading…
Reference in New Issue