mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
autoscroll to results in command panel preview list
This commit is contained in:
@@ -935,6 +935,9 @@ class Editor extends View
|
||||
getLastVisibleScreenRow: ->
|
||||
Math.max(0, Math.ceil((@scrollTop() + @scrollView.height()) / @lineHeight) - 1)
|
||||
|
||||
isScreenRowVisible: (row) ->
|
||||
@getFirstVisibleScreenRow() <= row <= @getLastVisibleScreenRow()
|
||||
|
||||
handleScreenLinesChange: (change) ->
|
||||
@pendingChanges.push(change)
|
||||
@requestDisplayUpdate()
|
||||
|
||||
Reference in New Issue
Block a user