Modal can't resize for slide-box list


#1

I’m making a railway timetable lookup application, so when I want to choose the station, the modal popup and then click the region, the slider willl go to next and show child stations. The problem is when child stations’ list length less then previous, the scroll is at the bottom, and the modal won’t fit with content.

I also tryed $ionicSlideBoxDelegate.update() and $ionicScrollDelegate.resize() and wait for list elementx loaded, but it doesn’t work.

codepen below
enter link description here

you can scrolll down to Jiji and click, then problem happened