Resizing ionicscrolview


#1

I am loading content dynamically in a ion-nav-view. I am having nested views as follows.

footer.html:

<ion-tabs>
       <ion-tab title="My app" icon-on="BGImgCenter iMyOn" icon-off="BGImgCenter  iMyOff" href="#/footer/myapp/enrollments">
	<ion-nav-view name="footer-myapp"></ion-nav-view>
	
</ion-tab>
  </ion-tabs>

Home.html:

    <ion-nav-view name="MyAppnavView"  ng-controller="MyAppHomeMainCtrl">
</ion-nav-view> 

app.js:

    .state('footer.myapp.enrollments',{
	url:'/enrollments',
	views:{
		'MyAppnavView':{ //@footer.myhipac
			templateUrl:'templates/AppEnrollments.html',
			//template:'<p>abcsdasds</p>',
			controller:'EnrolmentsCtrl'
		}
	}
})

in my controllers:
$ionicScrollDelegate.resize();

i am trying to resize. but itsnt resize to content width and height.


#2

i was not able to use ionic resize. so i have given an ‘id’ to my

i am taking my window height from javascript using
$window.innerHeight
and assigning it to my nav-view

 document.getElementByID('mynavview').style.height = ($window.innerHeight-50)+'px';

50 i am subtracting because i have a footer.
hope it helps others