Skip to content

Commit 8b0ee6b

Browse files
committed
Comment update
1 parent 1040c66 commit 8b0ee6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/lightbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@
304304
maxImageHeight = self.options.maxHeight;
305305
}
306306

307-
// Is there a fitting issue?
307+
// Is the current image's width or height is greater than the maxImageWidth or maxImageHeight
308+
// option than we need to size down while maintaining the aspect ratio.
308309
if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) {
309310
if ((preloader.width / maxImageWidth) > (preloader.height / maxImageHeight)) {
310311
imageWidth = maxImageWidth;

0 commit comments

Comments
 (0)