Skip to content

Commit 45f0299

Browse files
committed
Fix account for height change due to menu bar on iOS webkit
1 parent 262a4fd commit 45f0299

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Assets/WebGLTemplates/Develop/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111
margin: 0;
1212
}
1313

14+
html {
15+
/* fix mobile viewport menu bar on iOS */
16+
height: -webkit-fill-available;
17+
}
18+
1419
body {
1520
height: 100%;
21+
/* fix mobile viewport menu bar on iOS */
22+
height: -webkit-fill-available;
1623
width: 100%;
1724
text-align: center;
1825
}

Assets/WebGLTemplates/Release/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111
margin: 0;
1212
}
1313

14+
html {
15+
/* fix mobile viewport menu bar on iOS */
16+
height: -webkit-fill-available;
17+
}
18+
1419
body {
1520
height: 100%;
21+
/* fix mobile viewport menu bar on iOS */
22+
height: -webkit-fill-available;
1623
width: 100%;
1724
text-align: center;
1825
}

0 commit comments

Comments
 (0)