@one-commerce/sdk-core 2.1.0 → 2.1.1-KALET-149-autoheight-fix.0
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.
- package/lib/bundles/bundle.esm.js +3 -4
- package/lib/bundles/bundle.esm.js.map +1 -1
- package/lib/bundles/bundle.esm.min.js +1 -1
- package/lib/bundles/bundle.esm.min.js.map +1 -1
- package/lib/bundles/bundle.umd.js +3 -4
- package/lib/bundles/bundle.umd.js.map +1 -1
- package/lib/bundles/bundle.umd.min.js +1 -1
- package/lib/bundles/bundle.umd.min.js.map +1 -1
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +3 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1334,10 +1334,9 @@
|
|
|
1334
1334
|
}, {
|
|
1335
1335
|
key: "sendFrameHeight",
|
|
1336
1336
|
value: function sendFrameHeight() {
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, height);
|
|
1337
|
+
// html element has scrollHeight same as height set on iframe so we cant use it
|
|
1338
|
+
var body = document.body;
|
|
1339
|
+
this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, body.scrollHeight);
|
|
1341
1340
|
}
|
|
1342
1341
|
}, {
|
|
1343
1342
|
key: "initializeHeightObserver",
|