Skip to content

Enhancement request - Improve support for running inside an iFrame #1117

Answered by sachinchoolur
CCCullens asked this question in Q&A
Discussion options

You must be logged in to vote

Do you have a demo where I can reproduce the issue?

You can set iframe width and height using iframeHeight and iframeWidth settings respectively https://www.lightgalleryjs.com/docs/settings/#iframeHeight

Also, to set the correct height and width when the lightGallery container is resized you can use the lgContainerResize event and modify values - https://www.lightgalleryjs.com/docs/events/#lgContainerResize

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CCCullens
Comment options

Answer selected by CCCullens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants