Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove margin from sandbox iframe to fix size calculation #1688

Merged
merged 6 commits into from
Jul 12, 2017
4 changes: 2 additions & 2 deletions components/sandbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export default class Sandbox extends wp.element.Component {
function sendResize() {
window.top.postMessage( {
action: 'resize',
width: document.body.offsetWidth,
height: document.body.offsetHeight
width: document.body.scrollWidth,
height: document.body.scrollHeight
}, '*' );
}

Expand Down