mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-06 22:20:02 +00:00
![BurningTreeC](/assets/img/avatar_default.png)
this allows using the pagescroller for scrolling elements into view where the rect gets calculated somewhere else Example: CodeMirror has the `cm.cursorCoords()` function that returns the rect of the textselection (or cursor coordinates) this scrolls the cursor or text selection into view using tiddlywikis pagescroller: `$tw.pageScroller.scrollIntoView(undefined, function() { return self.cm.cursorCoords(true,"window"); });`