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

IE Bug fix - changed slide width from % to px #212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AdamLyon
Copy link

IE11 and Edge round percentages to fewer decimal places than other browsers, and when there are more than a handful of slides, the slides start to offset and bleed into their neighboring slides. This can be seen in Edge at https://codepen.io/adamlyon/pen/JaEqdv , which is a fork for the basic example with just more slides added. As you navigate forward, you can see the next slide peeking from the right side, and gets progressively worse as you get further into the slideshow.

This fix is simply to make the slide width a pixel width instead of a calculated percentage, which works on all browsers. This doesn't need to be a complicated calculation, as the slide size is static (and already known).

Example of working fix: https://codepen.io/adamlyon/pen/yxgGje

@pawelgrzybek
Copy link
Owner

Top stuff here! Let me review and merge at some point next week please. Thanks for amazing contribution!

brabli added a commit to brabli/siema that referenced this pull request Nov 7, 2021
brabli added a commit to brabli/siema that referenced this pull request Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants