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:
parent
8ee2a500bc
commit
8ffb918824
|
@ -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;
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<div class='custom-ace-gutter'></div>
|
||||
{{ace-editor content=activeSection editorId=editorId mode=activeSectionMode autofocus="true"}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -99,12 +99,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.custom-ace-gutter {
|
||||
width: 41px;
|
||||
background-color: #ebebeb;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.ace_editor {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
|
Loading…
Reference in New Issue