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