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