extra div for overflows

master
Mark MacKay 2021-05-13 18:24:47 -05:00
parent 7998a9f395
commit 5146c5dc50
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ MD.Rulers = function(){
const svgcanvas = document.getElementById("svgcanvas"); const svgcanvas = document.getElementById("svgcanvas");
const ruler_x = document.getElementById("ruler_x"); const ruler_x = document.getElementById("ruler_x");
const ruler_y = document.getElementById("ruler_y"); const ruler_y = document.getElementById("ruler_y");
ruler_x.appendChild(document.createElement("canvas"));
ruler_y.appendChild(document.createElement("canvas")); $("#ruler_x, #ruler_y").append("<div><canvas></canvas></div>");
function clear(){ function clear(){
ruler_x.innerHTML = ""; ruler_x.innerHTML = "";