$ionicScrollDelegate not working for ionic popups(ion-modal-view)

I am trying to resize modal view height after adding dynamic content.

I have given delegate-handle to my content

     <ion-content delegate-handle="create-post">


and then from my controller i am calling


but it gives following error

ionic.bundle.js:21157 Delegate for handle “create-post” could not find a corresponding element with delegate-handle=“create-post”! resize() was not called!
Possible cause: If you are calling resize() immediately, and your element with delegate-handle=“create-post” is a child of your controller, then your element may not be compiled yet. Put a $timeout around your call to resize() and try again.

if i echo my $ionicScrollDelegate i get 3 instances.

this works for normal view… any suggestions?

Thanks in advance

Anyone already found a solution for this problem ?