Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working for multiple elements #430

Open
sushmarana28 opened this issue Nov 21, 2020 · 2 comments
Open

Not Working for multiple elements #430

sushmarana28 opened this issue Nov 21, 2020 · 2 comments

Comments

@sushmarana28
Copy link

It is not working for multiple elements. for single it is working fine. but for multiple not working. I have tried all ways. at last, I have to come here for a solution. I using galleria 1.6.1. I need to use this in a listing page on click show images on the popup and other info. Please provide me a solution.

Fatal error: Could not extract a stage height from the CSS. Traced height: 0px. showing this error and showing images for the first element but for the second element showing only error.

Please help me out if I am doing something wrong

@sammik
Copy link

sammik commented Nov 21, 2020

You need to set a height to galleria element.

May be have a look at docs https://galleriajs.github.io/docs/references/errors.html

@sushmarana28
Copy link
Author

Hi @sammik

Thank you for your reply. I just fix the issue by changing the script.

function openGalleria(i){
var oldid = $('#oldid').val();
if(oldid){
$('.galleria'+oldid).data('galleria').destroy()
}
$('#oldid').val(i);
$('.galleria'+i).galleria({
height : 300,
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants