Skip to content
Snippets Groups Projects
Commit e5588dcb authored by shaund's avatar shaund Committed by Marijn Haverbeke
Browse files

fix fullscreen demo to use wrapper, not scroll

parent 08f550ba
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@
CodeMirror.on(window, "resize", function() {
var showing = document.body.getElementsByClassName("CodeMirror-fullscreen")[0];
if (!showing) return;
showing.CodeMirror.getScrollerElement().style.height = winHeight() + "px";
showing.CodeMirror.getWrapperElement().style.height = winHeight() + "px";
});
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment