Extend highlights to the full editor width

This commit is contained in:
Antonio Scandurra
2015-06-08 18:58:04 +02:00
parent 515ae7acb7
commit cec6959e08
4 changed files with 14 additions and 13 deletions

View File

@@ -54,14 +54,14 @@ class LinesComponent
@removeTileNodes() unless @oldState.indentGuidesVisible is @newState.indentGuidesVisible
@updateTileNodes()
if @newState.scrollWidth isnt @oldState.scrollWidth
@domNode.style.width = @newState.scrollWidth + 'px'
@oldState.scrollWidth = @newState.scrollWidth
if @newState.width isnt @oldState.width
@domNode.style.width = @newState.width + 'px'
@cursorsComponent.updateSync(state)
@oldState.indentGuidesVisible = @newState.indentGuidesVisible
@oldState.scrollWidth = @newState.scrollWidth
@oldState.width = @newState.width
removeTileNodes: ->
@removeTileNode(id) for id of @oldState.tiles