diff --git a/jquery.elevatezoom.js b/jquery.elevatezoom.js index 1813e2d..15fa7ce 100644 --- a/jquery.elevatezoom.js +++ b/jquery.elevatezoom.js @@ -610,7 +610,7 @@ if ( typeof Object.create !== 'function' ) { lensHeight = String((self.options.zoomWindowHeight/self.heightRatio)) } - if(self.options.zoomWindowWidth < self.options.zoomWindowWidth){ + if(self.nzWidth < self.options.zoomWindowHeight/self.heightRatio){ lensWidth = self.nzWidth; } else{ @@ -1774,4 +1774,4 @@ if ( typeof Object.create !== 'function' ) { onImageSwapComplete: $.noop }; -})( jQuery, window, document ); \ No newline at end of file +})( jQuery, window, document );