From a189ba97d7244f5e002e909e182e5ff85458f615 Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Sat, 14 Dec 2013 09:11:14 -0800 Subject: [PATCH] Update navigator on full-page/full-screen bug fix --- src/viewer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/viewer.js b/src/viewer.js index 84406008..06a8858f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -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}). * @@ -991,6 +995,9 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, _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}). *