Move horiz scrollbar into the scrollView

Also remove all the gutter width calculation. It was flawed anyway,
This commit is contained in:
Ben Ogle
2014-07-23 16:20:48 -07:00
parent 361f8ec770
commit 2a9c78ef92
3 changed files with 18 additions and 50 deletions

View File

@@ -66,9 +66,6 @@ GutterComponent = React.createClass
@clearScreenRowCaches() unless oldProps.lineHeightInPixels is @props.lineHeightInPixels
@updateLineNumbers()
unless isEqualForProperties(oldProps, @props, 'maxLineNumberDigits', 'defaultCharWidth')
@measureWidth()
clearScreenRowCaches: ->
@lineNumberIdsByScreenRow = {}
@screenRowsByLineNumberId = {}
@@ -223,9 +220,3 @@ GutterComponent = React.createClass
editor.unfoldBufferRow(bufferRow)
else
editor.foldBufferRow(bufferRow)
measureWidth: ->
width = @getDOMNode().offsetWidth
unless width is @measuredWidth
@measuredWidth = width
@props.onWidthChanged?(width)