Skip to content

Commit

Permalink
[scrollpastend addon] Work around potential infinite event-handler re…
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jun 20, 2016
1 parent 592b4d1 commit e120175
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addon/scroll/scrollpastend.js
Expand Up @@ -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);
}
}
});

0 comments on commit e120175

Please sign in to comment.