소스 검색

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…
취소
저장