modified: views/project.ejs

This commit is contained in:
n0rdye 2023-12-03 14:41:35 +00:00
parent 98857bc518
commit d879798871

View File

@ -351,14 +351,14 @@
if(cost == true){ if(cost == true){
width += document.getElementById("proj_cost").getBoundingClientRect().width; width += document.getElementById("proj_cost").getBoundingClientRect().width;
document.getElementById("drags").append(document.getElementById("cost_div")); 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_div").style.marginTop = `4px`;
document.getElementById("cost_list").style.display = "block"; document.getElementById("cost_list").style.display = "block";
} }
html2canvas(document.getElementById("drags"),{ html2canvas(document.getElementById("drags"),{
y:5, y:6,
x:0, x:0,
width:(width+2), width:(width+5),
logging:false logging:false
// scale:0.99 // scale:0.99
}).then(canvas => { }).then(canvas => {