Community
Participate
Working Groups
I am using the following 2 lines of code to control the editor's show/hide scroll bar , which is hacky. editor._editorDiv.style.overflow = "auto"; editor.redrawLines(); A better way to do so is that we should have an API from editor tht can hide/show the scroll bar instead of changing the editor._editorDiv.style.overflow directly from the caller.
Silenio, can't this be done already using the CSS for the editor ? does Libing need to change this dynamically ?
(In reply to comment #1) > Silenio, can't this be done already using the CSS for the editor ? Yes, it can be done at creation time by providing the stylesheet option with a definition for the "editor" CSS class. By the way, we need to document the support CSS classes (editorContainer, editor, editorContent, editorLeftRuler and editorRightRuler) some where in the JSdoc. > does Libing need to change this dynamically ? Yes, he needs to change it dynamically. He is using to hide the scroll bars while the collapsing/expanding the outline with animation.
This can be done changing the css style using the new setOption () and the TextViewOptions.themeClass Is solution okay ? Please reopen if you need better support. Thanks.