FIX: add more consistent gutter to ace editor

old css hack had issues when line number was higher than 10
This commit is contained in:
Sam 2017-04-18 15:43:22 -04:00
parent 8ee2a500bc
commit 8ffb918824
3 changed files with 1 additions and 7 deletions

View File

@ -63,6 +63,7 @@ export default Ember.Component.extend({
this._skipContentChangeEvent = false;
});
editor.$blockScrolling = Infinity;
editor.renderer.setScrollMargin(10,10);
this.$().data('editor', editor);
this._editor = editor;

View File

@ -41,7 +41,6 @@
</div>
<div>
<div class='custom-ace-gutter'></div>
{{ace-editor content=activeSection editorId=editorId mode=activeSectionMode autofocus="true"}}
</div>

View File

@ -99,12 +99,6 @@
}
}
.custom-ace-gutter {
width: 41px;
background-color: #ebebeb;
height: 15px;
}
.ace_editor {
position: absolute;
left: 0;