Make placement guide the correct size

This commit is contained in:
Skylar Ittner 2021-07-15 11:15:04 -06:00
parent 391a319f6d
commit 8e2c42171b

View File

@ -186,6 +186,8 @@ function enableGuideBox(image, scalecorrectionfactor) {
var imageHeight = (image.height / (96 * scalecorrectionfactor)) * canvasCurrentDPI;
var canvas = $("#placementguidebox")[0];
canvas.width = imageWidth;
canvas.height = imageHeight;
var ctx = canvas.getContext("2d");
ctx.drawImage(image, 0, 0, imageWidth, imageHeight);
}