Spaces:
Running
Running
Update fullscreen_playcanvas.js
Browse files- fullscreen_playcanvas.js +3 -12
fullscreen_playcanvas.js
CHANGED
|
@@ -62,15 +62,10 @@
|
|
| 62 |
top: 0 !important;
|
| 63 |
left: 0 !important;
|
| 64 |
width: 100vw !important;
|
| 65 |
-
/* dvh exclut la barre Safari sur iOS, fallback vh pour anciens navigateurs */
|
| 66 |
height: 100vh !important;
|
| 67 |
-
height: 100dvh !important;
|
| 68 |
max-width: 100vw !important;
|
| 69 |
max-height: 100vh !important;
|
| 70 |
-
max-height: 100dvh !important;
|
| 71 |
padding-bottom: 0 !important;
|
| 72 |
-
/* Compense la safe-area iOS (barre du bas) sur navigateurs sans dvh */
|
| 73 |
-
padding-bottom: env(safe-area-inset-bottom, 0px) !important;
|
| 74 |
margin: 0 !important;
|
| 75 |
z-index: 99999;
|
| 76 |
}
|
|
@@ -151,14 +146,10 @@
|
|
| 151 |
wrapper.style.top = '0';
|
| 152 |
wrapper.style.left = '0';
|
| 153 |
wrapper.style.width = '100vw';
|
| 154 |
-
|
| 155 |
-
// Le fallback 100vh est écrasé si dvh est supporté
|
| 156 |
-
wrapper.style.height = supportsVh100d ? '100dvh' : '100vh';
|
| 157 |
wrapper.style.maxWidth = '100vw';
|
| 158 |
-
wrapper.style.maxHeight =
|
| 159 |
-
wrapper.style.paddingBottom =
|
| 160 |
-
? 'env(safe-area-inset-bottom, 0px)'
|
| 161 |
-
: '0';
|
| 162 |
wrapper.style.margin = '0';
|
| 163 |
wrapper.style.zIndex = '99999';
|
| 164 |
wrapper.classList.add('fake-fullscreen');
|
|
|
|
| 62 |
top: 0 !important;
|
| 63 |
left: 0 !important;
|
| 64 |
width: 100vw !important;
|
|
|
|
| 65 |
height: 100vh !important;
|
|
|
|
| 66 |
max-width: 100vw !important;
|
| 67 |
max-height: 100vh !important;
|
|
|
|
| 68 |
padding-bottom: 0 !important;
|
|
|
|
|
|
|
| 69 |
margin: 0 !important;
|
| 70 |
z-index: 99999;
|
| 71 |
}
|
|
|
|
| 146 |
wrapper.style.top = '0';
|
| 147 |
wrapper.style.left = '0';
|
| 148 |
wrapper.style.width = '100vw';
|
| 149 |
+
wrapper.style.height = '100vh';
|
|
|
|
|
|
|
| 150 |
wrapper.style.maxWidth = '100vw';
|
| 151 |
+
wrapper.style.maxHeight = '100vh';
|
| 152 |
+
wrapper.style.paddingBottom = '0';
|
|
|
|
|
|
|
| 153 |
wrapper.style.margin = '0';
|
| 154 |
wrapper.style.zIndex = '99999';
|
| 155 |
wrapper.classList.add('fake-fullscreen');
|