Skip to content

Commit 98593b4

Browse files
committed
v13.2.5
1 parent 0ad6945 commit 98593b4

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
<script src="/htmlimports.js"></script>
66
<title>Gleap Demo</title>
77
<meta charset="UTF-8" />
8-
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
99
<link rel="preconnect" href="https://fonts.gstatic.com" />
1010
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,500;0,700;0,800;1,400&display=swap"
1111
rel="stylesheet" />
1212
<link rel="icon" type="image/x-icon" href="fav.png">
1313
<script src="https://kit.fontawesome.com/0a1af2edbf.js" crossorigin="anonymous"></script>
14-
<meta name="viewport" content="width=device-width, initial-scale=1" />
14+
<meta name="viewport" content="height=device-height,
15+
width=device-width, initial-scale=1.0,
16+
minimum-scale=1.0, maximum-scale=1.0,
17+
user-scalable=no, target-densitydpi=device-dpi">
1518
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
1619
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
1720
<!-- index.js as found in build/index.js -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "13.2.4",
3+
"version": "13.2.5",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/13.2.5/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GleapFrameManager.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ export default class GleapFrameManager {
5353

5454
constructor() {
5555
this.startCommunication();
56+
if (typeof window !== "undefined") {
57+
function appHeight() {
58+
try {
59+
const doc = document.documentElement;
60+
doc.style.setProperty('--glvh', (window.innerHeight * .01) + 'px');
61+
} catch (e) { }
62+
}
63+
64+
try {
65+
window.addEventListener('resize', appHeight);
66+
appHeight();
67+
} catch (e) { }
68+
}
5669
}
5770

5871
setUrlHandler(handler) {

src/UI.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,7 @@ export const injectStyledCSS = (
15101510
max-width: 100vw;
15111511
min-height: 100vh;
15121512
min-height: -webkit-fill-available;
1513+
max-height: -webkit-fill-available;
15131514
top: 0px;
15141515
bottom: 0px;
15151516
border-radius: 0px;
@@ -1522,7 +1523,7 @@ export const injectStyledCSS = (
15221523
}
15231524
15241525
.gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {
1525-
max-height: initial !important;
1526+
max-height: calc(var(--glvh, 1vh) * 100) !important;
15261527
}
15271528
15281529
.gleap-frame-container--survey {

0 commit comments

Comments
 (0)