[英]CodeMirror show 2 scroll
I want to use CodeMirror
in my project. 我想在我的项目中使用
CodeMirror
。 It's load but editor show 2 scroll, one in right by CodeMirror
and one in left by css overflow-y: scroll
. 它已加载,但编辑器显示2个滚动,一个在
CodeMirror
,一个在css overflow-y: scroll
左边overflow-y: scroll
。 Is this problem because page direction or something else? 这是因为页面方向还是其他原因? How Can I fix this problem or disable one of Scrolls?
如何解决此问题或禁用其中之一的滚动?
I find the solution! 我找到了解决方案! The problem because of page direction.
由于页面方向的问题。 I fix the problem with change
CodeMirror
css and replace right:0
with left:0
in .CodeMirror-scrollbar
css class. 我解决了更改
CodeMirror
css的问题,并将.CodeMirror-scrollbar
css类中的right:0
替换为left:0
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.