diff --git a/src/navigator.js b/src/navigator.js index 9f3923df..7addc5ea 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -108,7 +108,9 @@ $.Navigator = function( options ){ immediateRender: true, blendTime: 0, animationTime: 0, - autoResize: options.autoResize + autoResize: options.autoResize, + // prevent resizing the navigator from adding unwanted space around the image + minZoomImageRatio: 1.0 }); options.minPixelRatio = this.minPixelRatio = viewer.minPixelRatio; diff --git a/src/openseadragon.js b/src/openseadragon.js index bef3502e..6eb8d09a 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -241,7 +241,7 @@ * @property {Number} [minZoomImageRatio=0.9] * The minimum percentage ( expressed as a number between 0 and 1 ) of * the viewport height or width at which the zoom out will be constrained. - * Setting it to 0, for example will allow you to zoom out infinitely. + * Setting it to 0, for example will allow you to zoom out infinitly. * * @property {Number} [maxZoomPixelRatio=1.1] * The maximum ratio to allow a zoom-in to affect the highest level pixel @@ -356,7 +356,7 @@ * @property {Boolean} [showNavigator=false] * Set to true to make the navigator minimap appear. * - * @property {String} [navigatorId=navigator-GENERATED DATE] + * @property {Boolean} [navigatorId=navigator-GENERATED DATE] * The ID of a div to hold the navigator minimap. * If an ID is specified, the navigatorPosition, navigatorSizeRatio, navigatorMaintainSizeRatio, and navigatorTop|Left|Height|Width options will be ignored. * If an ID is not specified, a div element will be generated and placed on top of the main image. @@ -393,12 +393,6 @@ * @property {Boolean} [navigatorRotate=true] * If true, the navigator will be rotated together with the viewer. * - * @property {Number} [navigatorMinZoomImageRatio=1.0] - * The minimum percentage ( expressed as a number between 0 and 1 ) of - * the navigator's image height or width at which the zoom out will be - * constrained during resize. Setting it to 0, for example will allow you - * to zoom out infinitely. Only applies when navigatorId is specified. - * * @property {Number} [controlsFadeDelay=2000] * The number of milliseconds to wait once the user has stopped interacting * with the interface before begining to fade the controls. Assumes @@ -1030,7 +1024,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ navigatorWidth: null, navigatorAutoResize: true, navigatorRotate: true, - navigatorMinZoomImageRatio: 1.0, // INITIAL ROTATION degrees: 0, diff --git a/src/viewer.js b/src/viewer.js index 95ae1afb..1e2a2a9d 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -411,8 +411,7 @@ $.Viewer = function( options ) { prefixUrl: this.prefixUrl, viewer: this, navigatorRotate: this.navigatorRotate, - crossOriginPolicy: this.crossOriginPolicy, - minZoomImageRatio: this.navigatorMinZoomImageRatio + crossOriginPolicy: this.crossOriginPolicy }); }