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

Resizing on container resize instead of window resize #2068

Closed
2 tasks done
andyo729 opened this issue Apr 5, 2017 · 2 comments
Closed
2 tasks done

Resizing on container resize instead of window resize #2068

andyo729 opened this issue Apr 5, 2017 · 2 comments

Comments

@andyo729
Copy link

andyo729 commented Apr 5, 2017

This is a (multiple allowed):

  • bug

  • enhancement

  • Swiper Version: 3.4.2

  • Platform/Target and Browser Versions: All platforms

What you did

After a window.resize a css animation is triggered on the parent container and the slider size is not updated appropriately.

Expected Behavior

Slider's width updates appropriately given the updated container width.

Actual Behavior

Slider's width stays at the width of after the window.resize, not after the container width change upon css animation.

@nolimits4web
Copy link
Owner

This technology have not standartized yet and the polyfill uses requestAnimationFrame and Mutation Observers to watch for changes which is not perfect from terms of performance. You can use this polyfill manually and call swiper.update when changes happen

@lock
Copy link

lock bot commented Jun 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the outdated label Jun 25, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants