MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / displayBottom

Function displayBottom

lib/web/CodeMirror/test/scroll_test.js:21–26  ·  view source on GitHub ↗
(cm, scrollbar)

Source from the content-addressed store, hash-verified

19 function barV(cm) { return byClassName(cm.getWrapperElement(), "CodeMirror-vscrollbar")[0]; }
20
21 function displayBottom(cm, scrollbar) {
22 if (scrollbar && cm.display.scroller.offsetHeight > cm.display.scroller.clientHeight)
23 return barH(cm).getBoundingClientRect().top;
24 else
25 return cm.getWrapperElement().getBoundingClientRect().bottom - 1;
26 }
27
28 function displayRight(cm, scrollbar) {
29 if (scrollbar && cm.display.scroller.offsetWidth > cm.display.scroller.clientWidth)

Callers 3

testMovedownFixedFunction · 0.85
testMovedownResizeFunction · 0.85
scroll_test.jsFile · 0.85

Calls 1

barHFunction · 0.85

Tested by

no test coverage detected