Update Frame resizing logic.

This commit is contained in:
2022-10-21 14:53:24 +03:00
parent ff33974b78
commit 1d214ca60f
4 changed files with 4 additions and 2 deletions
+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}), '*');
})