Issue with iframes that are hidden on page load
-
I’m running into some issues with the JavaScript in this theme that resizes iframes, objects and videos.
If the embed isn’t visible on page load, for example you want to show it later in a tab or lightbox, the width and height get set to 0. Then, when you attempt to display it after a user interaction, it’s not visible at all.
Could
twentytwenty.intrinsicRatioVideos.makeFit()
be modified to not set the width and height of iframes, objects, and videos if those are calculated to be zero?
- The topic ‘Issue with iframes that are hidden on page load’ is closed to new replies.