         if tableHeight?
             $loaderContainer.css 'height', "#{ tableHeight }px"
 
-    shrink: ->
+    startShrink: ->
+        @$el.trigger 'shrink'
+        @shrink()        
+
+    shrink: =>
         @$el.removeClass 'expanded'
-        @$el.trigger 'shrink'
         @suppressExpansion = true
 
 module.exports = FileBrowserSubview


    scrollToTop: ->
        return if @suppressExpansion
        
        @$el.addClass 'expanded'
        utils.animatedExpansion @$el

    navigate: (event) ->
        event.preventDefault()


    events: ->
        'click [data-directory-path]':  'navigate'
        'click [data-action="shrink"]': 'startShrink'

    initialize: ({ @scrollWhenReady }) ->
        @listenTo @collection, 'sync',  @render
