Add a real spec for visible line rendering in the react editor view

This commit is contained in:
Nathan Sobo
2014-03-27 15:15:16 -06:00
parent cc8ba2d679
commit 8ad13d3045
2 changed files with 23 additions and 2 deletions

View File

@@ -26,6 +26,9 @@ class ReactEditorView extends View
scrollTop: @scrollView.scrollTop
lineHeight: @lineHeight
setScrollTop: (scrollTop) ->
@contents.setProps({scrollTop})
measureLineHeight: ->
fragment = $$ ->
@div class: 'lines', ->