mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Avoid relying on ::scrollTop to calculate logical height
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user