Skip to content

Commit

Permalink
v2.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh committed Jul 7, 2020
1 parent 7734213 commit f90a3b0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 28 deletions.
17 changes: 6 additions & 11 deletions dist/js/lightbox-plus-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -10598,7 +10598,7 @@ return jQuery;
} );

/*!
* Lightbox v2.11.1
* Lightbox v2.11.2
* by Lokesh Dhakar
*
* More info:
Expand Down Expand Up @@ -10913,18 +10913,13 @@ return jQuery;
maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - self.options.positionFromTop - 70;

/*
SVGs that don't have width and height attributes specified are reporting width and height
values of 0 in Firefox 47 and IE11 on Windows. To fix, we set the width and height to the max
dimensions for the viewport rather than 0 x 0.
https://github.com/lokesh/lightbox2/issues/552
Since many SVGs have small intrinsic dimensions, but they support scaling
up without quality loss because of their vector format, max out their
size.
*/

if (filetype === 'svg') {
if ((preloader.width === 0) || preloader.height === 0) {
$image.width(maxImageWidth);
$image.height(maxImageHeight);
}
$image.width(maxImageWidth);
$image.height(maxImageHeight);
}

// Fit image inside the viewport.
Expand Down
4 changes: 2 additions & 2 deletions dist/js/lightbox-plus-jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/lightbox-plus-jquery.min.map

Large diffs are not rendered by default.

17 changes: 6 additions & 11 deletions dist/js/lightbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Lightbox v2.11.1
* Lightbox v2.11.2
* by Lokesh Dhakar
*
* More info:
Expand Down Expand Up @@ -314,18 +314,13 @@
maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - self.options.positionFromTop - 70;

/*
SVGs that don't have width and height attributes specified are reporting width and height
values of 0 in Firefox 47 and IE11 on Windows. To fix, we set the width and height to the max
dimensions for the viewport rather than 0 x 0.
https://github.com/lokesh/lightbox2/issues/552
Since many SVGs have small intrinsic dimensions, but they support scaling
up without quality loss because of their vector format, max out their
size.
*/

if (filetype === 'svg') {
if ((preloader.width === 0) || preloader.height === 0) {
$image.width(maxImageWidth);
$image.height(maxImageHeight);
}
$image.width(maxImageWidth);
$image.height(maxImageHeight);
}

// Fit image inside the viewport.
Expand Down
Loading

0 comments on commit f90a3b0

Please sign in to comment.