       0
 
   computeVerticalScrollbarWidth: ->
-    contentWidth = @computeContentWidth()
     clientWidthWithoutVerticalScrollbar = @contentFrameWidth
     clientWidthWithVerticalScrollbar = clientWidthWithoutVerticalScrollbar - @verticalScrollbarWidth
     clientHeightWithoutHorizontalScrollbar = @height

  updateState: ->
    @updateContentHeight()
    @updateHeight()

    @updateHeightState()
    @updateVerticalScrollState()

      contentHeight += extraScrollHeight if extraScrollHeight > 0
    Math.max(contentHeight, @height)

  updateContentWidth: ->
    @contentWidth = @pixelPositionForScreenPosition([@model.getLongestScreenRow(), Infinity]).left
    @contentWidth += 1 unless @model.isSoftWrapped() # account for cursor width

  updateContentHeight: ->
    @contentHeight = @lineHeight * @model.getScreenLineCount()
