mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Account for padding-left on the scroll view when soft-wrapping lines
Fixes #2844
This commit is contained in:
@@ -767,6 +767,8 @@ EditorComponent = React.createClass
|
||||
|
||||
if position is 'absolute' or width
|
||||
clientWidth = scrollViewNode.clientWidth
|
||||
paddingLeft = parseInt(getComputedStyle(scrollViewNode).paddingLeft)
|
||||
clientWidth -= paddingLeft
|
||||
editor.setWidth(clientWidth) if clientWidth > 0
|
||||
|
||||
measureLineHeightAndCharWidthsIfNeeded: (prevState) ->
|
||||
|
||||
Reference in New Issue
Block a user