Slide box in modal

I’m trying to use a slide box in a modal but it’s a mess until i resize the window. What’s going on? Thx Codepen:

(click the item to open the modal)
You can see that the slide box works well in origin page.

Modals are funny creatures. They sort of don’t exist until opened. So, you open it and then the slideBox service is supposed to set it up. The problem is that a slideBox doesn’t exist right away either. So, you are in a catch-22.

Here’s a fix using $ionicSlideBoxDelegate and $timeout

FYI : I’ve added some CSS to give the slides a min height so they are easier to scroll through.

1 Like

Thank you! That’s great