Index: lams_build/conf/whiteboard/src/js/whiteboard.js =================================================================== diff -u -r0a02475fc80d88c770630b1ca1450913d5d76900 -r8b0d9ba3b3ef706b0afe5b472ea8fb5c204d074b --- lams_build/conf/whiteboard/src/js/whiteboard.js (.../whiteboard.js) (revision 0a02475fc80d88c770630b1ca1450913d5d76900) +++ lams_build/conf/whiteboard/src/js/whiteboard.js (.../whiteboard.js) (revision 8b0d9ba3b3ef706b0afe5b472ea8fb5c204d074b) @@ -118,14 +118,13 @@ 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 = []; - - // Modified by LAMS - // Do not load canvas content again as it appears on top of the existing content - // For some reason clearning canvas does not work + _this.textContainer.empty(); + _this.loadData(dbCp); // draw old content in }); $(_this.mouseOverlay).on("mousedown touchstart", function (e) {