瀏覽代碼

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

customisations
alemart 1 年之前
父節點
當前提交
b44a3bd35c
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/core/viewport.ts

+ 2
- 2
src/core/viewport.ts 查看文件

@@ -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…
取消
儲存