Skip to content

Commit

Permalink
Merge pull request #557 from RuiBandarra/patch-1
Browse files Browse the repository at this point in the history
Bugfix - MaxHeight wouldn't work.
  • Loading branch information
lokesh authored Apr 22, 2019
2 parents 500e07e + 7e6db1c commit fbd39fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
maxImageWidth = self.options.maxWidth;
}
if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
if (self.options.maxHeight && self.options.maxHeight < maxImageHeight) {
maxImageHeight = self.options.maxHeight;
}

Expand Down

0 comments on commit fbd39fe

Please sign in to comment.