 
     editor.setVisible(true)
 
+    @visible = @isVisible()
     @measureLineHeightAndDefaultCharWidth()
     @measureScrollView()
     @measureScrollbars()

      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'

    window.addEventListener('mousemove', onMouseMove)
    window.addEventListener('mouseup', onMouseUp)

  isVisible: ->
    node = @getDOMNode()
    node.offsetHeight > 0 and node.offsetWidth > 0

  pauseScrollViewMeasurement: ->
    @scrollViewMeasurementPaused = true
    @resumeScrollViewMeasurementAfterDelay ?= debounce(@resumeScrollViewMeasurement, 100)
