       @tag 'canvas', {
         outlet: 'lineCanvas'
         class: 'minimap-canvas'
-        width: 120
-        height: 1000
         id: 'line-canvas'
       }
 


  setEditorView: (@editorView) ->
    @editor = @editorView.getModel()
    @buffer = @editorView.getEditor().buffer

    @subscribe @editor, 'screen-lines-changed.minimap', (changes) =>
      @pendingChanges.push changes
      @requestUpdate()

  requestUpdate: ->

    @cachedScrollTop = scrollTop
    @requestUpdate()


  getMinimapHeight: -> @getLinesCount() * @getLineHeight()
  getLineHeight: -> 2
