 
   hide: (noDelay) ->
     return unless @enabled
-    width = @getHiddenWidth()
+    @applyDoAnimate()
     transitionDelay = !noDelay * @getHideDelay()
     treeViewEl.classList.remove 'autohide-unfolded'
     treeViewEl.style.transitionDelay = "#{transitionDelay}s"
-    treeViewEl.style.width = "#{width}px"
+    @applyHiddenWidth()
     treeView.unfocus()
     @enableHoverEvents()
 

      @disable() if @enabled and 'tree-view' is path.basename pkg.path

    @subs.add atom.config.onDidChange 'autohide-tree-view.hiddenWidth', (width) => @applyHiddenWidth width
    @subs.add atom.config.onDidChange 'autohide-tree-view.animate', (doAnimate) => @applyAnimate doAnimate
    @subs.add atom.config.onDidChange 'tree-view.showOnRightSide', (width) => @applyHiddenWidth width

    @subs.add 'atom-workspace', 'mouseenter', '.tree-view-resizer.autohide-hover-events', => @show()

  show: (noDelay, disableHoverEvents) ->
    return unless @enabled
    @applyHiddenWidth()
    @applyDoAnimate()
    width = treeViewEl.querySelector('.tree-view').clientWidth
    if width > treeViewEl.clientWidth > @getHiddenWidth()
      noDelay = true
