mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
Return top and left values of 0 when not visible
This commit is contained in:
@@ -1086,7 +1086,7 @@ class Editor extends View
|
||||
@pixelPositionForScreenPosition(@screenPositionForBufferPosition(position))
|
||||
|
||||
pixelPositionForScreenPosition: (position) ->
|
||||
return { top: 0, left: 0 } unless @isOnDom()
|
||||
return { top: 0, left: 0 } unless @isOnDom() and @isVisible()
|
||||
{row, column} = Point.fromObject(position)
|
||||
actualRow = Math.floor(row)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user