Browse Source

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

customisations
alemart 1 year ago
parent
commit
b44a3bd35c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/core/viewport.ts

+ 2
- 2
src/core/viewport.ts View File

798
         if(this.style == 'inline') {
798
         if(this.style == 'inline') {
799
             container.style.left = '0px';
799
             container.style.left = '0px';
800
             container.style.top = '0px';
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
         else
804
         else
805
             throw new IllegalOperationError('Invalid inline viewport style: ' + this.style);
805
             throw new IllegalOperationError('Invalid inline viewport style: ' + this.style);

Loading…
Cancel
Save