mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add more shims to ReactEditorView
This commit is contained in:
@@ -37,6 +37,12 @@ class ReactEditorView extends View
|
||||
pixelPositionForBufferPosition: (bufferPosition) ->
|
||||
@editor.pixelPositionForBufferPosition(bufferPosition)
|
||||
|
||||
pixelPositionForScreenPosition: (screenPosition) ->
|
||||
@editor.pixelPositionForScreenPosition(screenPosition)
|
||||
|
||||
appendToLinesView: (view) ->
|
||||
@find('.scroll-view-content').prepend(view)
|
||||
|
||||
beforeRemove: ->
|
||||
React.unmountComponentAtNode(@element)
|
||||
@attached = false
|
||||
|
||||
Reference in New Issue
Block a user