Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

iPhone XS MAX support?



  • Hello,

    Today I’ve experienced an issue with iPhone XS Max.

    I’ve noticed that the top toolbar goes under the iPhone’s status bar.

    So, I’ve put this code in my app:

    if (ons.platform.isIPhoneX()) { // Utility function
      // Add empty attribute to the <html> element
      document.documentElement.setAttribute('onsflag-iphonex-portrait', '');
    }
    

    But this will create a huge white bar at the top of the screen and pushes the whole ```
    ons-page

    
    is there a way to resolve this issue?
    
    Thanks in advance.