Skip to content

Commit

Permalink
Merge pull request #498 from artoonie/feature/dynamic-iframe-heights
Browse files Browse the repository at this point in the history
allow all clients to use resizing
  • Loading branch information
artoonie authored Jul 22, 2024
2 parents e861ceb + 3bee704 commit 73c88a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion static/visualizer/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function makeEmbeddedIframeTag(iframeUrl) {
var height = parseInt(event.data.rcvisHeight);
iframe.height = height + 'px';
}, false);
contentWindow.postMessage({getSize: true}, '${iframeUrl}');
contentWindow.postMessage({getSize: true}, '*');
">
`;
return text;
Expand Down
1 change: 0 additions & 1 deletion static/visualizer/visualize-nonblocking.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function setUpIframeMessageListener() {
var height = document.getElementById("embedded-content").scrollHeight
+ document.getElementById("embedded-footer").scrollHeight
+ 10;
console.log("sending message" + height);
parent.postMessage({rcvisHeight: height}, "*");
}
});
Expand Down

0 comments on commit 73c88a7

Please sign in to comment.