Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2022-09-23 11:04:25 +08:00
commit f84bc6d605
9 changed files with 46 additions and 47 deletions

View file

@ -1032,7 +1032,7 @@ OutputPanel.prototype._resize = function () {
break;
}
this.document.body.style.width = "-moz-max-content";
this.document.body.style.width = "max-content";
let style = this._frame.contentWindow.getComputedStyle(this.document.body);
let frameWidth = parseInt(style.width, 10);
let width = Math.min(maxWidth, frameWidth);