From 99f73c548c91d87e9dcab2506cddd8c19b7bfd32 Mon Sep 17 00:00:00 2001 From: Sebastien ROBERT Date: Fri, 28 Jan 2022 08:49:42 +0900 Subject: [PATCH] Changed full page sizing to 100vw/100vh instead of compute fixed size (issue 2099) --- src/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 8d7be6ae..cefd5653 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1041,8 +1041,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, $.addClass( this.element, 'fullpage' ); body.appendChild( this.element ); - this.element.style.height = $.getWindowSize().y + 'px'; - this.element.style.width = $.getWindowSize().x + 'px'; + this.element.style.height = '100vh'; + this.element.style.width = '100vw'; if ( this.toolbar && this.toolbar.element ) { this.element.style.height = (