Issue with ion-content scroll size and dynamic sized content

Hey everyone,

I’m guessing this is a known issue but I couldn’t find a solution elsewhere.

I have an <ion-content> filled with items that open up sub-items underneath them as their ‘active’ state. The problem is that when I open up these sub-items, the <ion-content> doesn’t resize the scrollable area (vertically) so it leaves things pushed off the screen at the bottom until I aggressively scroll down enough for something to trigger a refresh on the scrollable height.

Thanks!

Any time you start expanding the content, you need to tell the scroller about the new content with :

$scope.$broadcast('scroll.resize');
2 Likes

I try to use in slide-box on slide change function but it is not working. Please give example…