This commit is contained in:
Antonio Scandurra
2015-06-05 16:05:30 +02:00
parent 9f21ccf54d
commit da05e1e234
4 changed files with 60 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
_ = require 'underscore-plus'
HighlightsComponent = require './highlights-component'
TokenIterator = require './token-iterator'
AcceptFilter = {acceptNode: -> NodeFilter.FILTER_ACCEPT}
WrapperDiv = document.createElement('div')
@@ -26,6 +27,9 @@ class TileComponent
@domNode.style.position = "absolute"
@domNode.style.display = "block"
@highlightsComponent = new HighlightsComponent(@presenter)
@domNode.appendChild(@highlightsComponent.getDomNode())
getDomNode: ->
@domNode
@@ -62,6 +66,8 @@ class TileComponent
@domNode.style.width = @newState.scrollWidth + 'px'
@oldState.scrollWidth = @newState.scrollWidth
@highlightsComponent.updateSync(@newTileState)
@oldState.indentGuidesVisible = @newState.indentGuidesVisible
@oldState.scrollWidth = @newState.scrollWidth