Merge pull request #2347 from pearcetm/navigator-fix

update navigator size when calling setHeight or setWidth
This commit is contained in:
Ian Gilman 2023-05-04 13:42:17 -07:00 committed by GitHub
commit d4057aca12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}, },
/** /**