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.
1 parent 2bf93f3 commit 7e6db1cCopy full SHA for 7e6db1c
src/js/lightbox.js
@@ -302,7 +302,7 @@
302
if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
303
maxImageWidth = self.options.maxWidth;
304
}
305
- if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
+ if (self.options.maxHeight && self.options.maxHeight < maxImageHeight) {
306
maxImageHeight = self.options.maxHeight;
307
308
0 commit comments