From 528df373358bda18f88fef9ba9c3508ced17d5ac Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 3 May 2023 22:38:49 -0400 Subject: [PATCH] update navigator size when calling setHeight or setWidth --- src/navigator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/navigator.js b/src/navigator.js index 8d1aac2a..9d2cf6b7 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -324,6 +324,7 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /* this.width = width; this.element.style.width = typeof (width) === "number" ? (width + 'px') : width; this._resizeWithViewer = false; + this.updateSize(); }, /** @@ -334,6 +335,7 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /* this.height = height; this.element.style.height = typeof (height) === "number" ? (height + 'px') : height; this._resizeWithViewer = false; + this.updateSize(); }, /**