diff --git a/static/css/main.css b/static/css/main.css
index 8178a68..c9c8fdf 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -574,6 +574,7 @@ th-literate-program[data-mode="graphics"] {
& iframe {
border-style: none;
border-radius: 4px;
+ display: block;
}
/* The inner iframe is hidden until something requests display. */
diff --git a/static/js/sandbox.js b/static/js/sandbox.js
index c26bd9c..7893a7d 100644
--- a/static/js/sandbox.js
+++ b/static/js/sandbox.js
@@ -6,11 +6,5 @@ export class Sketch {
this.ctx = this.canvas.getContext("2d");
document.body.appendChild(this.canvas);
-
- postMessage({
- kind: "resize",
- width,
- height,
- });
}
}
diff --git a/template/sandbox.hbs b/template/sandbox.hbs
index 12d8d67..d000df8 100644
--- a/template/sandbox.hbs
+++ b/template/sandbox.hbs
@@ -10,13 +10,28 @@
margin: 0;
overflow: hidden;
}
+
+ canvas {
+ display: block;
+ }