# Alternatives from Ionic V3 to V4

**URL:** <https://forum.ionicframework.com/t/alternatives-from-ionic-v3-to-v4/185330>\
**Category:** Ionic Angular\
**Created:** [March 17, 2020, 8:00pm UTC](https://forum.ionicframework.com/t/alternatives-from-ionic-v3-to-v4/185330 "2020-03-17T20:00:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fmhmd](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Fmhmd](https://forum.ionicframework.com/u/Fmhmd)\
**Post date:** [March 17, 2020, 8:00pm UTC](https://forum.ionicframework.com/t/alternatives-from-ionic-v3-to-v4/185330/1 "2020-03-17T20:00:47Z")

</div>

Hello everyone,

I hope everyone is doing well.

I’m looking for some assistance upgrading from V3 to V4.

The issue we have is that in IonContent both getContentDimensions and resize methods have been removed in Ionic 4. Is there any other way to get the dimensions of and resize it?

Here is some sample code:

```auto
  @ViewChild(IonContent)
  content: IonContent
  const dimensions = this.content.getContentDimensions()
  this.pageHeight = dimensions.contentHeight
      // set height for some charts
	…..
	…..
  this.content.resize()

```

Thank you all for your assistance.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [March 18, 2020, 2:05pm UTC](https://forum.ionicframework.com/t/alternatives-from-ionic-v3-to-v4/185330/2 "2020-03-18T14:05:02Z")

</div>

This shouldn’t be needed anymore since the content size is not determined by JS. It just uses CSS to adjust its size.

If you’re looking to get the height of the Content element though… you _could try_

```auto
  @ViewChild(IonContent, { static: false, read: ElementRef })
  content: ElementRef<HTMLElement>;

  const dimensions = this.content.nativeElement.getBoundingClientRect();

```

The get the height/width you need from that.
