Update navigator on full-page/full-screen bug fix

This commit is contained in:
Mark Salsbery 2013-12-14 09:11:14 -08:00
parent 14acb5d581
commit a189ba97d7

View File

@ -910,6 +910,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
} }
if ( this.navigator && this.viewport ) {
this.navigator.update( this.viewport );
}
/** /**
* Raised when the viewer has changed to/from full-page mode (see {@link OpenSeadragon.Viewer#setFullPage}). * Raised when the viewer has changed to/from full-page mode (see {@link OpenSeadragon.Viewer#setFullPage}).
* *
@ -991,6 +995,9 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
_this.element.style.height = _this.fullPageStyleHeight; _this.element.style.height = _this.fullPageStyleHeight;
} }
} }
if ( _this.navigator && _this.viewport ) {
_this.navigator.update( _this.viewport );
}
/** /**
* Raised when the viewer has changed to/from full-screen mode (see {@link OpenSeadragon.Viewer#setFullScreen}). * Raised when the viewer has changed to/from full-screen mode (see {@link OpenSeadragon.Viewer#setFullScreen}).
* *