Hi there, is it somehow possible to place scrollbar out of the editor textarea so it will not cover the last line of the content?
Is the scrollbar autohiding, and is the behavior the same for textarea?
If yes, then a workaround for this is to use:
dom = require("ace/lib/dom")
dom.scrollbarWidth_orig = dom.scrollbarWidth_orig || dom.scrollbarWidth
dom.scrollbarWidth = function(doc) { return Math.max(10, dom.scrollbarWidth_orig(doc)) }
if no, then this is a bug. On which browser and os do you see it?
I've added padding-bottom to .ace-editor ;) but if you're curious, it happens on OS X Mojave, in Chrome & also FF
You can even see the problem on Ace homepage(chrome/ff/safari on a mac, image is from here: https://ace.c9.io/)
Seems like scrollbars are usually autohiding on a mac, and this problem does indeed occur with a plain setScrollMargin
did do the trick for me:
editor.renderer.setScrollMargin(0, 10, 0, 10)
and I'm using react-ace, so solution was from here: https://github.com/securingsincity/react-ace/issues/386
Most helpful comment
You can even see the problem on Ace homepage(chrome/ff/safari on a mac, image is from here: https://ace.c9.io/)
Seems like scrollbars are usually autohiding on a mac, and this problem does indeed occur with a plain
editor.renderer.setScrollMargin(0, 10, 0, 10)
and I'm using react-ace, so solution was from here: https://github.com/securingsincity/react-ace/issues/386