Ion-content instance member contentHeight returns 0

#1

Hey everyone,

On my component, I’d like to get the height of the current ion-content so in my ionViewDidLoad() I am doing this.viewCtrl.getIONContent().contentHeight but it is returning 0… however, when I console.log this.viewCtrl.getIONContent(), contentHeight has a value of 555.

Anyone know what the issue is? I’ve also tried getting the instance of the ion-content using ViewChild but I get the same result of 0.