You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
I'm using fancybox to show a number of different things, in various ways in my application. They work fine, except that for mobile, the close button does not appear. It's there, but the fancybox-content div has the CSS property overflow: scroll set. Since the button is positioned outside this div, it doesn't show. I found the following code in jquery.fancybox.js:
// Fix responsive iframes on iOS (along with `position:absolute;` for iframe element)
if ($.fancybox.isMobile) {
opts.css.overflow = "scroll";
}
If I comment that out, it works as expected and the button reappears. I don't like editing third party files though, and I am wondering if there is a way to circumvent this behaviour that doesn't involve modifying third party code?
Using Fancybox 3.5.2.
Best regards,
Daniel
The text was updated successfully, but these errors were encountered:
I'm using fancybox to show a number of different things, in various ways in my application. They work fine, except that for mobile, the close button does not appear. It's there, but the fancybox-content div has the CSS property overflow: scroll set. Since the button is positioned outside this div, it doesn't show. I found the following code in jquery.fancybox.js:
If I comment that out, it works as expected and the button reappears. I don't like editing third party files though, and I am wondering if there is a way to circumvent this behaviour that doesn't involve modifying third party code?
Using Fancybox 3.5.2.
Best regards,
Daniel
The text was updated successfully, but these errors were encountered: