Skip to content

Commit 4951739

Browse files
committed
Fix scrolling issue.
Reviewed by @tolmasky.
1 parent 4dc8390 commit 4951739

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
parent.removeChild(codeElement);
122122
parent.removeChild(target);
123123
parent.style.background = "transparent";
124+
parent.style.overflow = "hidden";
124125

125126
RunKit.createNotebook({
126127
element: parent,
@@ -131,7 +132,7 @@
131132
minHeight: "52px",
132133
onLoad: function(notebook) {
133134
var iframe = parent.lastElementChild;
134-
iframe.style.cssText = 'height:' + iframe.style.height + ';width:' + iframe.style.width;
135+
iframe.style.cssText = 'height:' + iframe.style.height;
135136
iframe.classList.add('repl')
136137
notebook.evaluate()
137138
}

0 commit comments

Comments
 (0)