You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if your problem is similar, but I had this problem because Swiper was added inside a modal. The problem happen because Swiper is running init-functions when modal is closed and width is 0 px. To solve this problem I added this attributte to swiper element:
on-Init="onInit"
And in my scope controller I added this:
$scope.onInit = function (swiper) {
$('#myBootstrapModalElement').on('shown.bs.modal', function(){
swiper.onResize();
});
};
This will trigger swipers resize function after modal is opened.
Hi,
I am trying to make a web app that uses Swiper. I found that Swiper is not showing up until the page is resized. How to fix this issue?
The text was updated successfully, but these errors were encountered: