radames commited on
Commit
9e0116e
1 Parent(s): 7f7bf76

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -0
index.html CHANGED
@@ -237,6 +237,7 @@
237
  canvas.height = img.height;
238
  ctxCanvas.drawImage(img, 0, 0);
239
  hasImage = true;
 
240
  clearBtn.classList.remove("invisible");
241
  dropButtons.classList.add("invisible");
242
  };
 
237
  canvas.height = img.height;
238
  ctxCanvas.drawImage(img, 0, 0);
239
  hasImage = true;
240
+ canvas.parentElement.style.height = canvas.offsetHeight + "px";
241
  clearBtn.classList.remove("invisible");
242
  dropButtons.classList.add("invisible");
243
  };