Liferay.Loader.define("liferay!layout-content-page-editor-web$codemirror@5.65.2/addon/scroll/scrollpastend",["module","exports","require","../../lib/codemirror"],(function(e,t,o){window,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?o("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=scrollpastend.js.map