@crediblemark/build 0.25.9 → 0.25.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -149,11 +149,8 @@ var HtmlModeRender = ({
|
|
|
149
149
|
<script>
|
|
150
150
|
function sendHeight() {
|
|
151
151
|
const body = document.body;
|
|
152
|
-
|
|
153
|
-
const height = Math.max(
|
|
154
|
-
body.scrollHeight, body.offsetHeight,
|
|
155
|
-
html.clientHeight, html.scrollHeight, html.offsetHeight
|
|
156
|
-
);
|
|
152
|
+
// calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
|
|
153
|
+
const height = Math.max(body.scrollHeight, body.offsetHeight);
|
|
157
154
|
window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
|
|
158
155
|
}
|
|
159
156
|
window.addEventListener('load', sendHeight);
|
package/dist/index.js
CHANGED
|
@@ -12260,11 +12260,8 @@ var HtmlModeRender = ({
|
|
|
12260
12260
|
<script>
|
|
12261
12261
|
function sendHeight() {
|
|
12262
12262
|
const body = document.body;
|
|
12263
|
-
|
|
12264
|
-
const height = Math.max(
|
|
12265
|
-
body.scrollHeight, body.offsetHeight,
|
|
12266
|
-
html.clientHeight, html.scrollHeight, html.offsetHeight
|
|
12267
|
-
);
|
|
12263
|
+
// calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
|
|
12264
|
+
const height = Math.max(body.scrollHeight, body.offsetHeight);
|
|
12268
12265
|
window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
|
|
12269
12266
|
}
|
|
12270
12267
|
window.addEventListener('load', sendHeight);
|
package/dist/index.mjs
CHANGED
package/dist/no-external.js
CHANGED
|
@@ -12260,11 +12260,8 @@ var HtmlModeRender = ({
|
|
|
12260
12260
|
<script>
|
|
12261
12261
|
function sendHeight() {
|
|
12262
12262
|
const body = document.body;
|
|
12263
|
-
|
|
12264
|
-
const height = Math.max(
|
|
12265
|
-
body.scrollHeight, body.offsetHeight,
|
|
12266
|
-
html.clientHeight, html.scrollHeight, html.offsetHeight
|
|
12267
|
-
);
|
|
12263
|
+
// calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
|
|
12264
|
+
const height = Math.max(body.scrollHeight, body.offsetHeight);
|
|
12268
12265
|
window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
|
|
12269
12266
|
}
|
|
12270
12267
|
window.addEventListener('load', sendHeight);
|
package/dist/no-external.mjs
CHANGED