(editor, around)
| 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; |