mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add ReactEditorView::getFontSize
This commit is contained in:
@@ -715,6 +715,8 @@ EditorComponent = React.createClass
|
||||
console.log "Wasted"
|
||||
ReactPerf.printWasted()
|
||||
|
||||
getFontSize: -> @state.fontSize
|
||||
|
||||
setFontSize: (fontSize) ->
|
||||
@setState({fontSize})
|
||||
|
||||
|
||||
@@ -127,4 +127,7 @@ class ReactEditorView extends View
|
||||
getLastVisibleScreenRow: ->
|
||||
@editor.getVisibleRowRange()[1]
|
||||
|
||||
getFontSize: ->
|
||||
@component?.getFontSize()
|
||||
|
||||
requestDisplayUpdate: -> # No-op shim for find-and-replace
|
||||
|
||||
Reference in New Issue
Block a user