Skip to content

Commit f90a3b0

Browse files
committed
v2.11.2
1 parent 7734213 commit f90a3b0

File tree

6 files changed

+18
-28
lines changed

6 files changed

+18
-28
lines changed

dist/js/lightbox-plus-jquery.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10598,7 +10598,7 @@ return jQuery;
1059810598
} );
1059910599

1060010600
/*!
10601-
* Lightbox v2.11.1
10601+
* Lightbox v2.11.2
1060210602
* by Lokesh Dhakar
1060310603
*
1060410604
* More info:
@@ -10913,18 +10913,13 @@ return jQuery;
1091310913
maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - self.options.positionFromTop - 70;
1091410914

1091510915
/*
10916-
SVGs that don't have width and height attributes specified are reporting width and height
10917-
values of 0 in Firefox 47 and IE11 on Windows. To fix, we set the width and height to the max
10918-
dimensions for the viewport rather than 0 x 0.
10919-
10920-
https://github.com/lokesh/lightbox2/issues/552
10916+
Since many SVGs have small intrinsic dimensions, but they support scaling
10917+
up without quality loss because of their vector format, max out their
10918+
size.
1092110919
*/
10922-
1092310920
if (filetype === 'svg') {
10924-
if ((preloader.width === 0) || preloader.height === 0) {
10925-
$image.width(maxImageWidth);
10926-
$image.height(maxImageHeight);
10927-
}
10921+
$image.width(maxImageWidth);
10922+
$image.height(maxImageHeight);
1092810923
}
1092910924

1093010925
// Fit image inside the viewport.

dist/js/lightbox-plus-jquery.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lightbox-plus-jquery.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lightbox.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Lightbox v2.11.1
2+
* Lightbox v2.11.2
33
* by Lokesh Dhakar
44
*
55
* More info:
@@ -314,18 +314,13 @@
314314
maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - self.options.positionFromTop - 70;
315315

316316
/*
317-
SVGs that don't have width and height attributes specified are reporting width and height
318-
values of 0 in Firefox 47 and IE11 on Windows. To fix, we set the width and height to the max
319-
dimensions for the viewport rather than 0 x 0.
320-
321-
https://github.com/lokesh/lightbox2/issues/552
317+
Since many SVGs have small intrinsic dimensions, but they support scaling
318+
up without quality loss because of their vector format, max out their
319+
size.
322320
*/
323-
324321
if (filetype === 'svg') {
325-
if ((preloader.width === 0) || preloader.height === 0) {
326-
$image.width(maxImageWidth);
327-
$image.height(maxImageHeight);
328-
}
322+
$image.width(maxImageWidth);
323+
$image.height(maxImageHeight);
329324
}
330325

331326
// Fit image inside the viewport.

0 commit comments

Comments
 (0)