       hiddenInputStyle.WebkitTransform = 'translateZ(0)' if @useHardwareAcceleration
       if @mouseWheelScreenRow? and not (renderedStartRow <= @mouseWheelScreenRow < renderedEndRow)
         mouseWheelScreenRow = @mouseWheelScreenRow
+
       style.height = scrollViewHeight if @autoHeight
 
     className = 'editor-contents editor-colors'

    {editor} = @props
    Math.max(1, Math.ceil(editor.getHeight() / editor.getLineHeightInPixels()))

  getInitialState: ->
    visible: true

  getDefaultProps: ->
    cursorBlinkPeriod: 800

    clientWidth -= paddingLeft
    editor.setWidth(clientWidth) if clientWidth > 0

  measureLineHeightAndDefaultCharWidthIfNeeded: (prevState) ->
    if not isEqualForProperties(prevState, @state, 'lineHeight', 'fontSize', 'fontFamily')
      if @visible
        @measureLineHeightAndDefaultCharWidth()
      else
        @measureLineHeightAndDefaultCharWidthWhenShown = true
    else if @measureLineHeightAndDefaultCharWidthWhenShown and @visible
      @measureLineHeightAndDefaultCharWidthWhenShown = false
      @measureLineHeightAndDefaultCharWidth()

  measureLineHeightAndDefaultCharWidth: ->
    @refs.lines.measureLineHeightAndDefaultCharWidth()

  remeasureCharacterWidthsIfNeeded: (prevState) ->
    if not isEqualForProperties(prevState, @state, 'fontSize', 'fontFamily')
      if @visible
        @remeasureCharacterWidths()
      else
        @remeasureCharacterWidthsIfVisibleAfterNextUpdate = true
    else if @remeasureCharacterWidthsIfVisibleAfterNextUpdate and @visible
      @remeasureCharacterWidthsIfVisibleAfterNextUpdate = false
      @remeasureCharacterWidths()

