summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/scroll/scrollpastend.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/addon/scroll/scrollpastend.js')
-rw-r--r--public/vendor/codemirror/addon/scroll/scrollpastend.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/vendor/codemirror/addon/scroll/scrollpastend.js b/public/vendor/codemirror/addon/scroll/scrollpastend.js
index 008ae4c7..a2ed089b 100644
--- a/public/vendor/codemirror/addon/scroll/scrollpastend.js
+++ b/public/vendor/codemirror/addon/scroll/scrollpastend.js
@@ -40,7 +40,9 @@
if (cm.state.scrollPastEndPadding != padding) {
cm.state.scrollPastEndPadding = padding;
cm.display.lineSpace.parentNode.style.paddingBottom = padding;
+ cm.off("refresh", updateBottomMargin);
cm.setSize();
+ cm.on("refresh", updateBottomMargin);
}
}
});