diff --git a/src/js/whiteboard.js b/src/js/whiteboard.js index cd15319..ef7ad14 100644 --- a/src/js/whiteboard.js +++ b/src/js/whiteboard.js @@ -118,11 +118,12 @@ const whiteboard = { this.oldGCO = this.ctx.globalCompositeOperation; window.addEventListener("resize", function () { - // Handel resize + // Handle resize const dbCp = JSON.parse(JSON.stringify(_this.drawBuffer)); // Copy the buffer _this.canvas.width = $(window).width(); _this.canvas.height = $(window).height(); // Set new canvas height _this.drawBuffer = []; + _this.textContainer.empty(); _this.loadData(dbCp); // draw old content in });