💚 Attempt to fix specs

This commit is contained in:
Antonio Scandurra
2016-02-18 14:18:27 +01:00
parent 68bf2f8dc7
commit d6132888fa
2 changed files with 6 additions and 7 deletions

View File

@@ -544,7 +544,7 @@ describe('TextEditorComponent', function () {
editor.setSoftWrapped(true)
await nextViewUpdatePromise()
componentNode.style.width = 17 * charWidth + wrapperNode.getVerticalScrollbarWidth() + 'px'
componentNode.style.width = 16 * charWidth + wrapperNode.getVerticalScrollbarWidth() + 'px'
component.measureDimensions()
await nextViewUpdatePromise()
})

View File

@@ -90,7 +90,7 @@ class TextEditorPresenter
@updateLineDecorations()
@updateBlockDecorations()
@updateTilesState(true)
@updateTilesState()
@updating = false
@state
@@ -112,7 +112,7 @@ class TextEditorPresenter
@updateHiddenInputState()
@updateContentState()
@updateHighlightDecorations() if @shouldUpdateDecorations
@updateTilesState(false)
@updateTilesState()
@updateCursorsState()
@updateOverlaysState()
@updateLineNumberGutterState()
@@ -327,7 +327,7 @@ class TextEditorPresenter
clearScreenRowsToMeasure: ->
@screenRowsToMeasure = []
updateTilesState: (updateLinesState) ->
updateTilesState: ->
return unless @startRow? and @endRow? and @lineHeight?
screenRows = @getScreenRows()
@@ -367,9 +367,8 @@ class TextEditorPresenter
gutterTile.display = "block"
gutterTile.zIndex = zIndex
if updateLinesState
@updateLinesState(tile, rowsWithinTile)
@updateLineNumbersState(gutterTile, rowsWithinTile)
@updateLinesState(tile, rowsWithinTile)
@updateLineNumbersState(gutterTile, rowsWithinTile)
visibleTiles[tileStartRow] = true
zIndex++