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

pagination directive not working when swiper under use of ng-hide #12

Open
vinitsolanki opened this issue Apr 26, 2017 · 1 comment
Open

Comments

@vinitsolanki
Copy link

vinitsolanki commented Apr 26, 2017

pagination directive not working when swiper directive initialized under hidden div with the use of ng-hide="true". and I am not able to see swiper-pagination dotes when I am show div with the use of ng-hide="false".
and very important pagination dots visible after we changing browser's width size.

you can see attached jsfiddle.
http://jsfiddle.net/vtha0wbe/

stackoverlow
http://stackoverflow.com/questions/43639232/if-a-div-starts-with-display-none-the-library-does-not-work-angular-js

@nebulr
Copy link
Owner

nebulr commented May 17, 2017

Right now you can use ng-if for showing

Here you go : http://jsfiddle.net/27ovs81e/

I don't have a fix for the ng-show right now so I'll keep this open. It happens because it tries to initialize a slider that is display none so it doesn't know the right size dimensions.

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

No branches or pull requests

2 participants