Add ReactEditorView::getFontSize

This commit is contained in:
Nathan Sobo
2014-06-05 11:58:36 +09:00
parent cfd9baa0d6
commit e0b1a0cfa7
2 changed files with 5 additions and 0 deletions

View File

@@ -715,6 +715,8 @@ EditorComponent = React.createClass
console.log "Wasted"
ReactPerf.printWasted()
getFontSize: -> @state.fontSize
setFontSize: (fontSize) ->
@setState({fontSize})

View File

@@ -127,4 +127,7 @@ class ReactEditorView extends View
getLastVisibleScreenRow: ->
@editor.getVisibleRowRange()[1]
getFontSize: ->
@component?.getFontSize()
requestDisplayUpdate: -> # No-op shim for find-and-replace