[英]Ace Editor hide last sumbols by vertical scrollbar
I'm using the editor Ace. 我正在使用编辑器Ace。 It works fine, but when the text exceeds the width of the editor, there is a vertical strip that covers the last two characters.
它可以正常工作,但是当文本超出编辑器的宽度时,会出现一个垂直条,覆盖最后两个字符。 How to fix it?
如何解决?
当有一个水平滚动条它创建一个垂直MAXLINES选项不能很好地工作https://github.com/ajaxorg/ace/issues/2336的代码https://github.com/ajaxorg/ace/blob/ v1.1.8 / lib / ace / virtual_renderer.js#L924也需要更新,以解决滚动条的问题。
you need: editor.renderer.setScrollMargin(12, 12, 0, 0); 您需要:editor.renderer.setScrollMargin(12,12,0,0); (top, bottom, left, right)
(上,下,左,右)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.