I want ACE editor to be able to scroll 900px below the last line of code/text, how would I go about doing that?

796 views
Skip to first unread message

Brynjar Harðarson

unread,
Nov 3, 2013, 7:00:24 AM11/3/13
to ace-d...@googlegroups.com
So right now when I scroll the scrolling stops / hits bottom when it reaches the last line of text in the editor, but I want it to go a little farther than that, say 900px. I've tried to add padding-bottom and margin-bottom to various elements but nothing seems to work so far, any ideas?

Harutyun Amirjanyan

unread,
Nov 3, 2013, 1:07:19 PM11/3/13
to ace-d...@googlegroups.com
use
editor.setOption("scrollPastEnd", 0.7) // will have additional scroll
space equal to 0.7 * screenSize
or
editor.renderer.setScrollMargin(top, bottom, left, right) // e.g
editor.renderer.setScrollMargin(0, 900)
Reply all
Reply to author
Forward
0 new messages