diff --git a/views/project.ejs b/views/project.ejs index ca74c49..6b45da0 100644 --- a/views/project.ejs +++ b/views/project.ejs @@ -351,14 +351,14 @@ if(cost == true){ width += document.getElementById("proj_cost").getBoundingClientRect().width; document.getElementById("drags").append(document.getElementById("cost_div")); - document.getElementById("cost_div").style.marginLeft = `${parseInt(document.getElementById("wall").style.width) + 1}px`; + document.getElementById("cost_div").style.marginLeft = `${parseInt(document.getElementById("wall").style.width) + 4}px`; document.getElementById("cost_div").style.marginTop = `4px`; document.getElementById("cost_list").style.display = "block"; } html2canvas(document.getElementById("drags"),{ - y:5, + y:6, x:0, - width:(width+2), + width:(width+5), logging:false // scale:0.99 }).then(canvas => {