mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-26 06:24:45 -05:00
Merge branch 'fix/scroll-spell-debug-view' of git://github.com/gintau/codecombat into gintau-fix/scroll-spell-debug-view
This commit is contained in:
commit
92c87dc4ad
1 changed files with 2 additions and 2 deletions
|
@ -103,8 +103,8 @@ module.exports = class SpellToolbarView extends View
|
||||||
|
|
||||||
updateScroll: ->
|
updateScroll: ->
|
||||||
return unless statementStart = @callState?.statements?[@statementIndex]?.range[0]
|
return unless statementStart = @callState?.statements?[@statementIndex]?.range[0]
|
||||||
text = @ace.getValue()
|
text = @ace.getValue() # code in editor
|
||||||
currentLine = text.substr(0, statementStart).split('\n').length - 1
|
currentLine = statementStart.row
|
||||||
@ace.scrollToLine currentLine, true, true
|
@ace.scrollToLine currentLine, true, true
|
||||||
|
|
||||||
setCallState: (callState, statementIndex, @callIndex, @metrics) ->
|
setCallState: (callState, statementIndex, @callIndex, @metrics) ->
|
||||||
|
|
Loading…
Reference in a new issue