autoscroll to results in command panel preview list

This commit is contained in:
Corey Johnson
2012-12-03 10:23:28 -08:00
parent 5b143d4b93
commit 5d99824deb
3 changed files with 12 additions and 3 deletions

View File

@@ -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()