     @visible = false
     @enableHoverEvents()
     @recoverFocus()
-    targetWidth = @conf.hiddenWidth
-    @animate(targetWidth, delay).then (finished) =>
+    @animate(@conf.hiddenWidth, delay).then (finished) =>
       @treeView.scroller[0].style.display = 'none' if finished
 
   toggle: (disableHoverEvents = true) ->

      @focusedElement.focused()
    else if typeof @focusedElement.focus is 'function'
      @focusedElement.focus()
    @focusedElement = null

  enableHoverEvents: ->
    @treeViewEl.classList.add 'autohide-hover'

      else
        @treeViewEl.style.position = 'absolute'
        atom.views.getView(@treeView.panel)?.style.width = "#{@conf.hiddenWidth}px"
      @resize()
    .catch error

  show: (delay = @conf.showDelay, disableHoverEvents = false) ->
    @disableHoverEvents() if disableHoverEvents
    @storeFocusedElement()
    @treeView.scroller[0].style.display = ''
    @animate(@treeView.list[0].clientWidth, delay).then (finished) =>
      @visible = true
      @treeView.focus() if finished

