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

When popup is up, underlaying iframe doesn't scroll #81

Open
rafkamonday opened this issue Sep 22, 2017 · 4 comments
Open

When popup is up, underlaying iframe doesn't scroll #81

rafkamonday opened this issue Sep 22, 2017 · 4 comments

Comments

@rafkamonday
Copy link

The moment the popup comes up, I cannot scroll inside the iframe of the underlaying page anymore. But I want to. It has nothing to do with the scroll lock option which is set false.

The iframe looks like this

<iframe id='if1' style=' width: 100%; height: 600px; border: none;' src='http://anyurl.com'> </iframe>

The init we have here:
$('#my_popup').popup({
transition: 'all 0.3s',
background:false,
vertical:'top',
horizontal:'right',
autoopen:true,
focuselement:'#if1'
});

As you see, it doesn't help to dedicate the focus element to the iframe after the popup. The iframe-scrolling is like locked.

Has somebody a good idea about that behavior?

@pvgoran
Copy link
Contributor

pvgoran commented Sep 22, 2017

I think the only reason to enable interaction with the page contents (and <iframe> is a part of the frame contents) is to set backgroundactive to false. But it will change positioning of the popup, and the popup will then scroll along with the page, which you probably do not want.

@rafkamonday
Copy link
Author

Thank you for your answer. Pitifully adding option backgroundactive:false does not change a thing. Still the iframe page is not scrollable as soon as the popup appears.

@pvgoran
Copy link
Contributor

pvgoran commented Sep 22, 2017

I made a mistake, it should be backgroundactive: true instead of backgroundactive: false.

@rafkamonday
Copy link
Author

Thanks a lot, thats better now, although - as you imply - it is not possible to get the popup to bottom or to the top now. Option vertical does not seem to work with backgroundactive: true.

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