Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Missing smallBtn on mobile #2128

Closed
hckling opened this issue Nov 19, 2018 · 3 comments
Closed

Missing smallBtn on mobile #2128

hckling opened this issue Nov 19, 2018 · 3 comments
Labels

Comments

@hckling
Copy link

hckling commented Nov 19, 2018

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

@acwolff
Copy link

acwolff commented Nov 19, 2018

Why don’t you give a link to your page?

@fancyapps
Copy link
Owner

Hi,

Thanks for reporting, this will be fixed in the next update.

@7iomka
Copy link

7iomka commented Dec 8, 2018

Same issue

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

No branches or pull requests

4 participants