Skip to content

Commit

Permalink
Don't set large wrapper properties unless mode is 'outside'
Browse files Browse the repository at this point in the history
Addresses mark-rolich#5
  • Loading branch information
pads committed Apr 10, 2014
1 parent 6e1d2da commit 0edc84e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Magnifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ var Magnifier = function (evt, options) {
zoomAttached: false,
status: 0,
largeUrl: largeUrl,
largeWrapperId: largeWrapper.id,
largeWrapperW: largeWrapper.offsetWidth,
largeWrapperH: largeWrapper.offsetHeight,
largeWrapperId: mode === 'outside' ? largeWrapper.id : null,
largeWrapperW: mode === 'outside' ? largeWrapper.offsetWidth : null,
largeWrapperH: mode === 'outside' ? largeWrapper.offsetHeight : null,
onzoom: onzoom,
onthumbenter: onthumbenter,
onthumbleave: onthumbleave,
Expand Down

0 comments on commit 0edc84e

Please sign in to comment.