Skip to content

Commit fbd39fe

Browse files
authored
Merge pull request #557 from RuiBandarra/patch-1
Bugfix - MaxHeight wouldn't work.
2 parents 500e07e + 7e6db1c commit fbd39fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/lightbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
324324
maxImageWidth = self.options.maxWidth;
325325
}
326-
if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
326+
if (self.options.maxHeight && self.options.maxHeight < maxImageHeight) {
327327
maxImageHeight = self.options.maxHeight;
328328
}
329329

0 commit comments

Comments
 (0)