mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
💄 correct typo in method name
This commit is contained in:
@@ -408,7 +408,7 @@ describe "Editor", ->
|
||||
editor.clearFontFamily()
|
||||
|
||||
it "positions the cursor to the clicked row and column", ->
|
||||
{top, left} = editor.pixelOffsUtilsetForScreenPosition([3, 30])
|
||||
{top, left} = editor.pixelOffsetForScreenPosition([3, 30])
|
||||
editor.renderedLines.trigger mousedownEvent(pageX: left, pageY: top)
|
||||
expect(editor.getCursorScreenPosition()).toEqual [3, 30]
|
||||
|
||||
|
||||
@@ -1502,7 +1502,7 @@ class Editor extends View
|
||||
range.detach()
|
||||
leftPixels
|
||||
|
||||
pixelOffsUtilsetForScreenPosition: (position) ->
|
||||
pixelOffsetForScreenPosition: (position) ->
|
||||
{top, left} = @pixelPositionForScreenPosition(position)
|
||||
offset = @renderedLines.offset()
|
||||
{top: top + offset.top, left: left + offset.left}
|
||||
|
||||
Reference in New Issue
Block a user