]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6193 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 22 Sep 2023 16:42:27 +0000 (18:42 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 22 Sep 2023 16:42:27 +0000 (18:42 +0200)
js/quiz.resize.js

index f9aa576853da4c9605e6063e8153802b69d82422..91da404a07505c5451676e853f4add2ae83f64e9 100644 (file)
@@ -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();