mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge pull request #2347 from pearcetm/navigator-fix
update navigator size when calling setHeight or setWidth
This commit is contained in:
commit
d4057aca12
@ -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();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user