   configs: {}
 
   constructor: (@paneView) ->
+    super
+    
     @scaleX = 0.2
     @scaleY = @scaleX * 0.8
     @minimapScale = @scale(@scaleX, @scaleY)
-    super
 
   initialize: ->
     @attach()

    @subscribe @paneView.model.$activeItem, @onActiveItemChanged
    @subscribe @paneView.model, 'destroy', => @destroy()
    @subscribe $(window), 'resize:end', @resizeend

    #@subscribe atom.workspaceView, 'cursor:moved', =>
    #  @update()

  attach: ->
    themeProp = 'minimap.theme'

    @miniScrollViewRect = @miniEditorView.getClientRect()

    # reset minimap-overlayer
    # top will be set 0 when reseting
    @miniOverlayer.addClass 'hide'
    @miniOverlayer.css
      width: @scrollViewRect.width
      height: @editorViewRect.height
      '-webkit-transform': @translateY()
      transform: @translateY()
    @miniOverlayer.removeClass 'hide'

    @transform @miniWrapper[0], @minimapScale

