This commit is contained in:
Antonio Scandurra 2015-06-06 09:31:38 +02:00
parent 8319eae0d7
commit f7b82f2411

View File

@ -1043,13 +1043,6 @@ class TextEditorPresenter
hasPixelPositionRequirements: ->
@lineHeight? and @baseCharacterWidth?
pixelPositionForScreenPositionInTile: (tileStartRow, screenPosition, clip) ->
position = @pixelPositionForScreenPosition(screenPosition, clip)
position.top -= tileStartRow * @lineHeight
position.top += @scrollTop
position.left += @scrollLeft
position
pixelPositionForScreenPosition: (screenPosition, clip=true) ->
screenPosition = Point.fromObject(screenPosition)
screenPosition = @model.clipScreenPosition(screenPosition) if clip