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
Modal jump to top of the screen problem #202
Comments
Same problem here :x |
That's strange: I have 2 different sites with iziModal. At first - no scroll to top, on second - there is. Looks like it depends on some markup but I can't get exactly what (tried many different things but still can't find). Trying with both methods: |
I did some investigation. This behavior happens when content in modal too long, longer than window, so the script adds this class to : iziModal-isAttached (at recalcLayout()). Only because of this page on first site scrolls to top, while on second site - don't. I checked all I can find - still have no idea why this happens. My temporary and dirty solution - to comment lines from 1226 to 1228 (iziModal.js). |
How to solve problem??? |
Problem exists even if you turn off history (hash navigation is not the reason). |
In iziModal.js remove this line (488): |
Help me please,
I Have a modal using iziModal . its working fine, but i have an issues with the modal pop up
when i use
$('#modal').iziModal('open');
The modal jump to the top, while i have scroll down the page. looks like it jump to my nav bar or something. i want to the modal is stay on the place where i click it.
can anyone help me with this?
The text was updated successfully, but these errors were encountered: