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


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


Try this,

On your .ts file, add this code.

@ViewChild(Content) content: Content:

// Then after orientation change event


Thanks @Ellezo. That works perfect :slight_smile:


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