Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

iPhone X and JQM 1.4 #8598

Closed
nhinze opened this issue Oct 25, 2017 · 3 comments
Closed

iPhone X and JQM 1.4 #8598

nhinze opened this issue Oct 25, 2017 · 3 comments

Comments

@nhinze
Copy link

nhinze commented Oct 25, 2017

This article is quite helpful to help fix the iPhone X issues with JQM 1.4 and WebViews.

http://ayogo.com/blog/ios11-viewport/

However, I can't figure out the CSS needed to move the top left menu button and to adjust for the left panel menu.

iphonex

@nhinze nhinze closed this as completed Oct 26, 2017
@dems54
Copy link

dems54 commented Feb 15, 2018

Hello @nhinze,

Why did you close this issue ? Do you have a solution ?

@nhinze
Copy link
Author

nhinze commented Feb 15, 2018

I fixed it this way:

/* iPhone X fix */
.ui-header-fixed, .ui-header-fixed .ui-btn-left, .ui-header-fixed .ui-btn-right, .panelmenu .ui-panel-inner .ui-listview {
    /* Status bar height on iOS 10 */
    padding-top: 20px !important;

    /* Status bar height on iOS 11.0 */
    padding-top: constant(safe-area-inset-top) !important;

    /* Status bar height on iOS 11+ */
    padding-top: env(safe-area-inset-top) !important;
}

@X901
Copy link

X901 commented Dec 13, 2018

@nhinze Thank you it fixed my issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants