Fix scrollbar issues (#160)

This commit is contained in:
Huyen Nguyen
2018-06-15 12:41:32 +07:00
committed by Mrugesh Mohapatra
parent 9bb486f57d
commit b5ff62e5f5
3 changed files with 19 additions and 5 deletions

View File

@ -42,7 +42,12 @@ class Editor extends PureComponent {
enabled: false enabled: false
}, },
selectOnLineNumbers: true, selectOnLineNumbers: true,
wordWrap: 'on' wordWrap: 'on',
scrollbar: {
horizontal: 'hidden',
vertical: 'visible',
verticalHasArrows: true
}
}; };
this._editor = null; this._editor = null;

View File

@ -1,9 +1,16 @@
.reflex-element {
overflow: hidden !important;
}
.editor { .editor {
height: 100%; height: 100%;
} }
.instructions-panel { .instructions-panel {
padding: 0 10px; padding: 0 10px;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
} }
.react-monaco-editor-container { .react-monaco-editor-container {
@ -13,7 +20,7 @@
align-items: end; align-items: end;
} }
.monaco-menu .action-label { .monaco-menu .action-label {
color: #a2bd9b; color: #a2bd9b;
letter-spacing: 0.02em; letter-spacing: 0.02em;
} }

View File

@ -15,11 +15,13 @@ const options = {
enabled: false enabled: false
}, },
readOnly: true, readOnly: true,
wordWrap: 'on',
scrollBeyondLastLine: false,
scrollbar: { scrollbar: {
vertical: 'hidden', horizontal: 'hidden',
horizontal: 'hidden' vertical: 'visible',
verticalHasArrows: true
}, },
wordWrap: 'on'
}; };
class Output extends PureComponent { class Output extends PureComponent {