I have an ionic app with a slidebox. The issue is that the slides are not always having the same height and I cannot predice the max height before of data binding. So, I thought to calculate the max height of the slides to apply, via javascript, that height to the bottom divs whenever the view is loaded. The point is that as soon as the controller is ‘loaded’ the height is not defined yet. I attached an screenshot to illustrate it
I made a Codepen with the issue, but instead of img are divs as you can imagine. If you scroll to bottom the first slide, when you slide to the second one you can see that annoying white space. That is what I try to avoid