IonicRC scroll-content margin-top not modified on orientation change


#1

Hi, I have a tabs page. On orientation change, margin-top are not modified leaving lot of empty space or content gets hidden. The gets modified only when i re-enter to the page from some other page. Is there a way to handle this. Please help


#2

Try this,

On your .ts file, add this code.

@ViewChild(Content) content: Content:

// Then after orientation change event
this.content.resize();


#3

Thanks @Ellezo. That works perfect :slight_smile:


#4

Glad I helped a bit. Happy coding. :slight_smile: