diff --git a/jquery.elevatezoom.js b/jquery.elevatezoom.js index 1813e2d..205a9f3 100644 --- a/jquery.elevatezoom.js +++ b/jquery.elevatezoom.js @@ -189,7 +189,7 @@ if ( typeof Object.create !== 'function' ) { // adjust images less than the window height - if(self.nzHeight < self.options.zoomWindowWidth/self.widthRatio){ + if(self.nzHeight < self.options.zoomWindowHeight/self.heightRatio){ lensHeight = self.nzHeight; } else{ @@ -1774,4 +1774,4 @@ if ( typeof Object.create !== 'function' ) { onImageSwapComplete: $.noop }; -})( jQuery, window, document ); \ No newline at end of file +})( jQuery, window, document );