     else
       @element.scrollTop + @element.offsetHeight
 
-  scrollToEntry: (entry) ->
+  scrollToEntry: (entry, center = true) ->
     element = if entry?.classList.contains('directory') then entry.header else entry
-    element?.scrollIntoViewIfNeeded(false) # false = just enough to make the item visible
+    element?.scrollIntoViewIfNeeded(center)
 
   scrollToBottom: ->
     if lastEntry = _.last(@list.querySelectorAll('.entry'))

      entries = @list.querySelectorAll('.entry')
      @selectEntry(entries[entries.length - 1])

    @scrollToEntry(@selectedEntry())

  nextEntry: (entry) ->
    currentEntry = entry

    if selectedEntry?
      if selectedEntry.classList.contains('directory')
        if @selectEntry(selectedEntry.entries.children[0])
          @scrollToEntry(@selectedEntry(), false)
          return

      if nextEntry = @nextEntry(selectedEntry)
