From dce1e81e6fcc25b4aa672fa124b9ecc8a4c76c17 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 22 Sep 2023 18:42:27 +0200 Subject: [PATCH] wip #6193 @0.25 --- js/quiz.resize.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); -- 2.39.5