$ionicScrollDelegate.resize() on IOS not working properly


#1

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


#2

Try to use the resize in a timeout like this :

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


#3

Worked perfectly, thanks!


#4

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