$ionicScrollDelegate.resize() on IOS not working properly

When I fire $ionicScrollDelegate.resize() after an accordion, the screen does not properly resize until after I actually use my finger to scroll a few times on IOS.

In the browser everything works great, but on the device I have to scroll a little bit until the scroll container resize registers or actually resizes.

Any ideas?

#ion-scroll #scroll #$IonicScrollDelegate

Try to use the resize in a timeout like this :

$timeout(function () {
$ionicScrollDelegate.resize();
}, 100);

1 Like

Worked perfectly, thanks!

1 Like

You are genius.Thanks it worked for me :slight_smile: