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

**URL:** <https://forum.ionicframework.com/t/ionicscrolldelegate-not-working-for-ionic-popups-ion-modal-view/47040>\
**Category:** uncategorized\
**Created:** [March 21, 2016, 10:32am UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-not-working-for-ionic-popups-ion-modal-view/47040 "2016-03-21T10:32:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashutoshsingh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ashutoshsingh/32/97128_2.png) [@ashutoshsingh](https://forum.ionicframework.com/u/ashutoshsingh)\
**Post date:** [March 21, 2016, 10:32am UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-not-working-for-ionic-popups-ion-modal-view/47040/1 "2016-03-21T10:32:58Z")

</div>

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

I have given delegate-handle to my content

```auto
<ion-modal-view>
     <ion-content delegate-handle="create-post">

     </ion-content>
</ion-modal-view>

```

and then from my controller i am calling

```auto
$ionicScrollDelegate.$getByHandle('create-post').resize();

```

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

---

<div class="post-metadata">

**Author:** ![jieves](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jieves](https://forum.ionicframework.com/u/jieves)\
**Post date:** [November 7, 2016, 3:36pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-not-working-for-ionic-popups-ion-modal-view/47040/2 "2016-11-07T15:36:51Z")

</div>

Anyone already found a solution for this problem ?
