mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Fix 0-width cursors in presenter instead of view
This commit is contained in:
@@ -7,9 +7,8 @@ CursorComponent = React.createClass
|
||||
displayName: 'CursorComponent'
|
||||
|
||||
render: ->
|
||||
{pixelRect, defaultCharWidth} = @props
|
||||
{pixelRect} = @props
|
||||
{top, left, height, width} = pixelRect
|
||||
width = defaultCharWidth if width is 0
|
||||
WebkitTransform = "translate(#{left}px, #{top}px)"
|
||||
|
||||
div className: 'cursor', style: {height, width, WebkitTransform}
|
||||
|
||||
Reference in New Issue
Block a user