       @miniEditorView.forceUpdate()
 
   destroy: ->
+    @paneView.removeClass('with-minimap')
     @off()
     @obsPane.dispose()
     @unsubscribe()

      @miniEditorView.forceUpdate()
    else
      @detachFromPaneView() if @parent().length is 1
      @paneView.addClass('with-minimap') if activeView?.hasClass('editor')

  onMouseWheel: (e) =>
    return if @isClicked

    @editor = @editorView.getEditor()
    @paneView = @editorView.getPane()

    @paneView.addClass('with-minimap')

    super

    @computeScale()
