       @miniEditorView.forceUpdate()
     else
       @detachFromPaneView() if @parent().length is 1
-      @paneView.addClass('with-minimap') if activeView?.hasClass('editor')
 
   onMouseWheel: (e) =>
     return if @isClicked

      @miniEditorView.forceUpdate()

  destroy: ->
    @off()
    @obsPane.dispose()
    @unsubscribe()

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

    @paneView.addClass('with-minimap')

    super

    @computeScale()
