Skip to content

Commit

Permalink
Release 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Jan 9, 2022
1 parent 5563ab3 commit 58d27a4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
9 changes: 6 additions & 3 deletions dist/BigPicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ var BigPicture = (function () {
document.body[appendEl](container);
return {
close: close,
opts: opts,
updateDimensions: updateDimensions,
display: displayElement,
next: function () { return updateGallery(1); },
prev: function () { return updateGallery(-1); },
}
Expand Down Expand Up @@ -309,7 +312,7 @@ var BigPicture = (function () {
// adjust loader position on window resize
galleryOpen || (isLoading && toggleLoadingIcon(true));
// adjust iframe dimensions
displayElement === iframeContainer && updateIframeDimensions();
displayElement === iframeContainer && updateDimensions();
});

// close container on escape key press and arrow buttons for gallery
Expand Down Expand Up @@ -548,12 +551,12 @@ var BigPicture = (function () {
// set iframe src to url
iframeSiteVid.src = url;

updateIframeDimensions();
updateDimensions();

setTimeout(open, 9);
}

function updateIframeDimensions() {
function updateDimensions() {
var height;
var width;

Expand Down
2 changes: 1 addition & 1 deletion dist/BigPicture.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ function BigPicture (options) {
document.body[appendEl](container);
return {
close: close,
opts: opts,
updateDimensions: updateDimensions,
display: displayElement,
next: function () { return updateGallery(1); },
prev: function () { return updateGallery(-1); },
}
Expand Down Expand Up @@ -308,7 +311,7 @@ function initialize() {
// adjust loader position on window resize
galleryOpen || (isLoading && toggleLoadingIcon(true));
// adjust iframe dimensions
displayElement === iframeContainer && updateIframeDimensions();
displayElement === iframeContainer && updateDimensions();
});

// close container on escape key press and arrow buttons for gallery
Expand Down Expand Up @@ -547,12 +550,12 @@ function createIframe() {
// set iframe src to url
iframeSiteVid.src = url;

updateIframeDimensions();
updateDimensions();

setTimeout(open, 9);
}

function updateIframeDimensions() {
function updateDimensions() {
var height;
var width;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bigpicture",
"version": "2.6.0",
"version": "2.6.1",
"description": "Lightweight image and video viewer, supports youtube / vimeo",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 58d27a4

Please sign in to comment.