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

#1

Happing only in iphone X

#2

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) {
          this.content.resize();
        }
      }, 600);
   
    });

the content will resize automatically.

#3

Have added it but didn’t help :frowning: