mirror of https://github.com/CIRCL/lookyloo
fix: Expand the background to cover the last node
parent
62cb5a9eb7
commit
5a65f472fb
|
@ -328,7 +328,9 @@ function update(root, computed_node_width=0) {
|
|||
// Set background based on the computed width and height
|
||||
let background = main_svg.insert('rect', ':first-child')
|
||||
.attr('y', 0)
|
||||
.attr('width', newWidth + (margin.right + margin.left))
|
||||
// Note: We want the background width with an extra computed_node_width
|
||||
// in order to make sure the last node is completely covered
|
||||
.attr('width', newWidth + (margin.right + margin.left + computed_node_width))
|
||||
.attr('height', newHeight + margin.top + margin.bottom)
|
||||
.style('fill', "url(#backstripes)");
|
||||
|
||||
|
|
Loading…
Reference in New Issue