mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Selection rendering accounts for the presence of gutter
This commit is contained in:
@@ -43,12 +43,10 @@ class Selection extends View
|
||||
|
||||
appendRegion: (rows, start, end) ->
|
||||
{ lineHeight, charWidth } = @editor
|
||||
css = {}
|
||||
css.top = start.row * lineHeight
|
||||
css.left = start.column * charWidth
|
||||
css = @editor.pixelPositionForScreenPosition(start)
|
||||
css.height = lineHeight * rows
|
||||
if end
|
||||
css.width = end.column * charWidth - css.left
|
||||
css.width = @editor.pixelPositionForScreenPosition(end).left - css.left
|
||||
else
|
||||
css.right = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user