Skip to content

Commit

Permalink
🐛 Fix remaining deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jan 14, 2015
1 parent 29de93f commit 3617939
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/dot-marker-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DotMarkerElement extends HTMLElement
line = @editor.lineTextForScreenRow(range.start.row)
lineLength = line.length
position = row: range.start.row, column: lineLength
{top, left} = @editor.pixelPositionForScreenPosition(position)
{top, left} = @editorElement.pixelPositionForScreenPosition(position)
@style.top = top + 'px'
@style.width = size + 'px'
@style.height = size + 'px'
Expand Down
4 changes: 2 additions & 2 deletions lib/marker-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class MarkerElement extends HTMLElement
bufferRange = @editor.bufferRangeForScreenRange({start, end})
text = @editor.getTextInRange(bufferRange)

css = @editor.pixelPositionForScreenPosition(start)
css = @editorElement.pixelPositionForScreenPosition(start)
css.height = lineHeight * rows
if end
css.width = @editor.pixelPositionForScreenPosition(end).left - css.left
css.width = @editorElement.pixelPositionForScreenPosition(end).left - css.left
else
css.right = 0

Expand Down
File renamed without changes.

0 comments on commit 3617939

Please sign in to comment.