Explorar el Código

Fix: the size of an inline viewport should match its resolution

customisations
alemart hace 1 año
padre
commit
b44a3bd35c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/core/viewport.ts

+ 2
- 2
src/core/viewport.ts Ver fichero

@@ -798,8 +798,8 @@ export class InlineViewport extends ResizableViewport
798 798
         if(this.style == 'inline') {
799 799
             container.style.left = '0px';
800 800
             container.style.top = '0px';
801
-            container.style.width = this._realSize.width + 'px';
802
-            container.style.height = this._realSize.height + 'px';
801
+            container.style.width = this.virtualSize.width + 'px';
802
+            container.style.height = this.virtualSize.height + 'px';
803 803
         }
804 804
         else
805 805
             throw new IllegalOperationError('Invalid inline viewport style: ' + this.style);

Loading…
Cancelar
Guardar