From: Vincent Vanwaelscappel Date: Fri, 22 Sep 2023 16:42:27 +0000 (+0200) Subject: wip #6193 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=dce1e81e6fcc25b4aa672fa124b9ecc8a4c76c17;p=fluidbook-toolbox-quiz.git wip #6193 @0.25 --- diff --git a/js/quiz.resize.js b/js/quiz.resize.js index f9aa576..91da404 100644 --- a/js/quiz.resize.js +++ b/js/quiz.resize.js @@ -19,15 +19,17 @@ QuizResize.prototype = { return; } - window.resizeTo(Math.min(screen.width, this.desktopWidth), Math.min(screen.height, this.desktopHeight)); + let decorationHeight = window.outerHeight - window.innerHeight; + let decorationWidth = window.outerWidth - window.innerWidth; + + window.resizeTo(Math.min(screen.width, this.desktopWidth+decorationWidth), Math.min(screen.height, this.desktopHeight + decorationHeight)); }, measureSizes: function () { this.ww = $(window).width(); this.hh = $(window).height(); this.ratio = this.ww / this.hh; - }, - resize: function () { + }, resize: function () { this.measureSizes();