diff --git a/src/display/text_layer.js b/src/display/text_layer.js index 22be2748c8dbe..ed0a25338425d 100644 --- a/src/display/text_layer.js +++ b/src/display/text_layer.js @@ -77,7 +77,7 @@ function getCtx() { // OffscreenCanvas. const canvas = document.createElement("canvas"); canvas.className = "hiddenCanvasElement"; - document.body.append(canvas); + document.querySelector("#viewer").append(canvas); _canvasContext = canvas.getContext("2d", { alpha: false }); }