Skip to content

Commit 1b41688

Browse files
committed
Bump react-ace and specify scrollMargin array
This allows us to emulate css-padding to a certain extent. The downside being its only activated by an `onscroll` function, ergo, only default padding until the user scrolls by a pixel at least.
1 parent 1cc3669 commit 1b41688

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lodash": "4.13.1",
3232
"moment": "2.17.1",
3333
"react": "15.4.1",
34-
"react-ace": "4.1.0",
34+
"react-ace": "4.1.5",
3535
"react-dom": "15.4.1",
3636
"react-dropzone": "3.10.0",
3737
"react-notification-system": "0.2.7",

src/components/Editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class Editor extends Component {
3434
highlightActiveLine={false}
3535
className="config-editor"
3636
fontSize={14}
37+
scrollMargin={[15, 15, 15, 15]}
3738
ref="ace"
3839
onChange={() => this.handleChange()}
3940
/>

0 commit comments

Comments
 (0)