       @pendingChanges = []
 
     if @offscreenFirstRow?
-      @context.drawImage(@offscreenCanvas, 0, (@offscreenFirstRow-firstRow) * 2)
+      @context.drawImage(@offscreenCanvas, 0, (@offscreenFirstRow-firstRow) * @getLineHeight())
       if firstRow < @offscreenFirstRow
         @drawLines(firstRow, @offscreenFirstRow, 0, @context)
       if lastRow > @offscreenLastRow

    screenRow = 0 if isNaN(screenRow)
    screenRow


  retrieveTokenColorFromDom: (token)->
    # This function insert a dummy token element in the DOM compute its style,



  getMinimapHeight: -> @getLinesCount() * @getLineHeight()
  getLineHeight: -> 3
  getCharHeight: -> 2
  getCharWidth: -> 1
  getLinesCount: -> @editorView.getEditor().getScreenLineCount()

  getMinimapScreenHeight: -> @minimapView.height() #/ @minimapView.scaleY
