We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 500e07e + 7e6db1c commit fbd39feCopy full SHA for fbd39fe
src/js/lightbox.js
@@ -323,7 +323,7 @@
323
if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
324
maxImageWidth = self.options.maxWidth;
325
}
326
- if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
+ if (self.options.maxHeight && self.options.maxHeight < maxImageHeight) {
327
maxImageHeight = self.options.maxHeight;
328
329
0 commit comments