Avoid relying on ::scrollTop to calculate logical height

This commit is contained in:
Antonio Scandurra
2015-09-22 18:13:41 +02:00
parent 6b5ab3e4c9
commit 2588e9779e

View File

@@ -352,8 +352,7 @@ class DisplayBuffer extends Model
[startRow, endRow]
getLogicalHeight: ->
[startRow, endRow] = @getVisibleRowRange()
endRow - startRow
Math.floor(@getHeight() / @getLineHeightInPixels())
intersectsVisibleRowRange: (startRow, endRow) ->
[visibleStart, visibleEnd] = @getVisibleRowRange()