Page 1 of 1

iPhone X notch and footer fix problem

Posted: Thu Nov 01, 2018 4:12 pm
by Chris6743166

Hi,

I've followed the instructions outlined here for creating safe space for the notch and microphone area on the iPhone X:

https://blog.phonegap.com/displaying-...

However, the top of the my JQM app won't budge, despite adding the required CSS.

Also, while the footer does rise above the microphone area, I can now see the page content below the footer when testing on the iPhone X simulator.

Anyone have any helpful advice?

Thanks,

Chris


iPhone X notch and footer fix problem

Posted: Sat Nov 03, 2018 9:21 am
by Serhii Kulibaba

Hello Chris,

Please see also this link: https://stackoverflow.com/questions/4...


iPhone X notch and footer fix problem

Posted: Sat Nov 03, 2018 11:26 am
by Chris6743166

Hi Serhii,

Thanks for the reply. Ended up going with this solution:

prebody {
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
position: relative;
}

.ui-header {
margin-top: constant(safe-area-inset-top);
margin-top: env(safe-area-inset-top);
}

.ui-footer {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}/pre


iPhone X notch and footer fix problem

Posted: Mon Sep 23, 2019 3:08 pm
by Maurice

Hi Appery,

I have been trying to work out how to correct the notch and footer gaps as they are NOT adjusting to the notch and footer as specified above.

I tried to follow your suggested article to Serhii, but I couldn't seem to get the app to adjust. I cannot even get the white space to appear!

Please, would you assist in providing a suggestion on how I should approach this change?

Regards

Maurice Image


iPhone X notch and footer fix problem

Posted: Tue Sep 24, 2019 8:54 am
by Serhii Kulibaba

Hello, have you tried Chris's solution?


iPhone X notch and footer fix problem

Posted: Tue Sep 24, 2019 9:31 am
by Maurice

Hi Serhii,
Thanks for replying. I tried to copy-paste the code directly into xCode in CSS for a page and nothing moved. Perhaps I am to adjust the code elsewhere. Would you tell me where you think I should put it?
Many thanks
Maurice


iPhone X notch and footer fix problem

Posted: Thu Sep 26, 2019 9:20 am
by Serhii Kulibaba

Please add it to the custom CSS file (Create new-CSS)