bqworks / slider-pro

A modular, responsive and touch-enabled jQuery slider plugin that enables you to create elegant and professionally looking sliders.
MIT License
877 stars 390 forks source link

Does this work in bootstrap 4 modal? #307

Closed beyz closed 3 years ago

beyz commented 4 years ago

I have tried but it does not seem to work in in bootstrap modal. There seems to be some responsiveness issue. When I resize the screen images appear but not when I first time open the modal. Any suggestions? Thank you in advance.

davidghi commented 4 years ago

Probably the slide is not visible or inside a visible container when it's instantiated, so it can't calculate its size correctly. A solution would be to call jQuery('.slider-pro').sliderPro('resize') after the slider or its container becomes visible, so that it can recalculate its size and display correctly.

Best, David