 
   getMinimapHeight: -> @getLinesCount() * @getLineHeight()
   getLineHeight: -> @lineHeight ||= parseInt @editorView.find('.lines').css('line-height')
+  getFontSize: -> @fontSize ||= parseInt @editorView.find('.lines').css('font-size')
   getLinesCount: -> @editorView.getEditor().getScreenLineCount()
 
   getMinimapScreenHeight: -> @minimapView.height() / @minimapView.scaleY

    firstVisibleScreenRow = @getFirstVisibleScreenRow()
    lastScreenRowToRender = firstVisibleScreenRow + @getMinimapHeightInLines() - 1
    lastScreenRow = @editor.getLastScreenRow()

    @lines.css fontSize: "#{@editorView.getFontSize()}px"

    if @firstRenderedScreenRow? and firstVisibleScreenRow >= @firstRenderedScreenRow and lastScreenRowToRender <= @lastRenderedScreenRow
      renderFrom = Math.min(lastScreenRow, @firstRenderedScreenRow)

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

    @lines.css
      lineHeight: "#{@getLineHeight()}px"
      fontSize: "#{@getFontSize()}px"

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