Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
correcting a mistake from pull reequest #66, i intended to set the wi…
Browse files Browse the repository at this point in the history
…dth and height property to 'null' but unfortunately wrote 0 -.- therefore #66 fixed #59 and #65 but the images height and width are not available for (yet) wont be displayed at all.
  • Loading branch information
leoek committed Sep 7, 2017
1 parent dd47dbb commit baccb9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react-image-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1321,8 +1321,8 @@ class ReactImageLightbox extends Component {
return;
}

imageStyle.width = (isNaN(bestImageInfo.width)) ? 0 : bestImageInfo.width;
imageStyle.height = (isNaN(bestImageInfo.height)) ? 0 : bestImageInfo.height;
imageStyle.width = isNaN(bestImageInfo.width) ? null : bestImageInfo.width;
imageStyle.height = isNaN(bestImageInfo.height) ? null : bestImageInfo.height;

const imageSrc = bestImageInfo.src;
if (discourageDownloads) {
Expand Down

0 comments on commit baccb9f

Please sign in to comment.