Update Frame resizing logic.

This commit is contained in:
roman committed 2022-10-21 14:53:24 +03:00
1 parent ff33974b78
commit 1d214ca60f
4 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ function setupResizeListener() {
const RESIZE_CODE = 'resize:';
const resizeObserver = new ResizeObserver(entries => {
const height = document.body.offsetHeight;
const height = document.body.scrollHeight;
window.parent.postMessage(RESIZE_CODE + JSON.stringify({height}), '*');
})