The horizontal scrollbar takes gutter width into account

This commit is contained in:
Ben Ogle
2014-07-22 13:54:22 -07:00
parent 2fe647c950
commit d3a6e79428
3 changed files with 9 additions and 6 deletions

View File

@@ -63,12 +63,12 @@ GutterComponent = React.createClass
@updateDummyLineNumber()
@removeLineNumberNodes()
unless isEqualForProperties(oldProps, @props, 'maxLineNumberDigits', 'defaultCharWidth')
@measureWidth()
@clearScreenRowCaches() unless oldProps.lineHeightInPixels is @props.lineHeightInPixels
@updateLineNumbers()
unless isEqualForProperties(oldProps, @props, 'maxLineNumberDigits', 'defaultCharWidth')
@measureWidth()
clearScreenRowCaches: ->
@lineNumberIdsByScreenRow = {}
@screenRowsByLineNumberId = {}