mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-23 02:03:13 +03:00
updates to work in progress
This commit is contained in:
parent
54af53cf4e
commit
2afd61b05d
@ -330,7 +330,7 @@ $.Viewer = function( options ) {
|
|||||||
|
|
||||||
this._onViewerResize = onViewerResize;
|
this._onViewerResize = onViewerResize;
|
||||||
this._origViewerResize = origViewerResize; //for testing logic changes
|
this._origViewerResize = origViewerResize; //for testing logic changes
|
||||||
if(ResizeObserver){
|
if(window.ResizeObserver){
|
||||||
this._autoResizePolling = false;
|
this._autoResizePolling = false;
|
||||||
|
|
||||||
this._resizeObserver = new ResizeObserver(function(){
|
this._resizeObserver = new ResizeObserver(function(){
|
||||||
@ -1700,15 +1700,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Force the viewer to reset it's size to it's container.
|
* Force the viewer to reset its size to match its container.
|
||||||
* @param Boolean ignoreAutorResizeSetting (default: false) If true, forces the resize even if Viewer.autoResize==false
|
|
||||||
* @returns {OpenSeadragon.Viewer} Chainable.
|
|
||||||
*/
|
*/
|
||||||
forceResize: function(ignoreAutoResizeSetting) {
|
forceImmediateResize: function() {
|
||||||
if(ignoreAutoResizeSetting || this.autoResize){
|
|
||||||
this._onViewerResize(this, _getSafeElemSize(this.container));
|
this._onViewerResize(this, _getSafeElemSize(this.container));
|
||||||
}
|
|
||||||
return this;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user