Liferay.Loader.define("liferay!template-web$codemirror@5.65.2/addon/scroll/scrollpastend",["module","exports","require","../../lib/codemirror"],(function(e,t,o){var n,a=void 0;window;n=function(e){"use strict";function onChange(t,o){e.changeEnd(o).line==t.lastLine()&&updateBottomMargin(t)}function updateBottomMargin(e){var t="";e.lineCount()>1&&(t=e.display.scroller.clientHeight-30-e.getLineHandle(e.lastLine()).height+"px"),e.state.scrollPastEndPadding!=t&&(e.state.scrollPastEndPadding=t,e.display.lineSpace.parentNode.style.paddingBottom=t,e.off("refresh",updateBottomMargin),e.setSize(),e.on("refresh",updateBottomMargin))}e.defineOption("scrollPastEnd",!1,(function(t,o,n){n&&n!=e.Init&&(t.off("change",onChange),t.off("refresh",updateBottomMargin),t.display.lineSpace.parentNode.style.paddingBottom="",t.state.scrollPastEndPadding=null),o&&(t.on("change",onChange),t.on("refresh",updateBottomMargin),updateBottomMargin(t))}))},"object"==typeof t&&"object"==typeof e?n(o("../../lib/codemirror")):"function"==typeof a&&a.amd?a(["../../lib/codemirror"],n):n(CodeMirror)}));
//# sourceMappingURL=scrollpastend.js.map