MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getOffsets

Function getOffsets

static/editor.md/lib/codemirror/addon/merge/merge.js:177–182  ·  view source on GitHub ↗
(editor, around)

Source from the content-addressed store, hash-verified

175 }
176
177 function getOffsets(editor, around) {
178 var bot = around.after;
179 if (bot == null) bot = editor.lastLine() + 1;
180 return {top: editor.heightAtLine(around.before || 0, "local"),
181 bot: editor.heightAtLine(bot, "local")};
182 }
183
184 function setScrollLock(dv, val, action) {
185 dv.lockScroll = val;

Callers 1

syncScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected