IPhoneX: How to remove white space which is displayed in header after coming back from landscape to portrait

Happing only in iphone X

Once you rotate from landscape to portarit or vice verse in ionicviewwillenter() event include the following piece of code.

  this.screenOrientation.onChange().subscribe(() => {
      setTimeout(() => {
        if (this.content) {
      }, 600);

the content will resize automatically.

Have added it but didn’t help :frowning: