Changed full page sizing to 100vw/100vh instead of compute fixed size (issue 2099)

This commit is contained in:
Sebastien ROBERT 2022-01-28 08:49:42 +09:00
parent 2c9d244023
commit 99f73c548c

View File

@ -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 = (