update navigator size when calling setHeight or setWidth

This commit is contained in:
Tom 2023-05-03 22:38:49 -04:00
parent b1274515aa
commit 528df37335

View File

@ -324,6 +324,7 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /*
this.width = width; this.width = width;
this.element.style.width = typeof (width) === "number" ? (width + 'px') : width; this.element.style.width = typeof (width) === "number" ? (width + 'px') : width;
this._resizeWithViewer = false; this._resizeWithViewer = false;
this.updateSize();
}, },
/** /**
@ -334,6 +335,7 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /*
this.height = height; this.height = height;
this.element.style.height = typeof (height) === "number" ? (height + 'px') : height; this.element.style.height = typeof (height) === "number" ? (height + 'px') : height;
this._resizeWithViewer = false; this._resizeWithViewer = false;
this.updateSize();
}, },
/** /**