File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 11# Lightbox2
22
3- The original lightbox script. Eight years later — still going strong!
3+ The _ original _ lightbox script.
44
55Lightbox is small javascript library used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.
66
Original file line number Diff line number Diff line change 11{
22 "name" : " lightbox2" ,
3- "version" : " 2.11.1 " ,
3+ "version" : " 2.11.2 " ,
44 "author" :
" Lokesh Dhakar <[email protected] >" ,
55 "description" : " The original Lightbox script. Uses jQuery." ,
66 "keywords" : [
Original file line number Diff line number Diff line change 11/*!
2- * Lightbox v2.11.1
2+ * Lightbox v2.11.2
33 * by Lokesh Dhakar
44 *
55 * More info:
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.
You can’t perform that action at this time.
0 commit comments