mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Merge branch 'nak-nostream' into nak-powered-search
This commit is contained in:
@@ -11,7 +11,7 @@ class DirectoryView extends View
|
||||
@div outlet: 'header', class: 'header', =>
|
||||
@span class: 'disclosure-arrow', outlet: 'disclosureArrow'
|
||||
@span directory.getBaseName(), class: 'name', outlet: 'directoryName'
|
||||
@span "", class: 'highlight'
|
||||
@span class: 'highlight'
|
||||
|
||||
directory: null
|
||||
entries: null
|
||||
|
||||
@@ -9,7 +9,7 @@ class FileView extends View
|
||||
@content: ({file} = {}) ->
|
||||
@li class: 'file entry', =>
|
||||
@span file.getBaseName(), class: 'name', outlet: 'fileName'
|
||||
@span '', class: 'highlight'
|
||||
@span class: 'highlight'
|
||||
|
||||
file: null
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ class TreeView extends ScrollView
|
||||
afterAttach: (onDom) ->
|
||||
@focus() if @focusAfterAttach
|
||||
@scrollTop(@scrollTopAfterAttach) if @scrollTopAfterAttach > 0
|
||||
@find('.selected > .highlight').width(@treeViewList[0].scrollWidth)
|
||||
|
||||
serialize: ->
|
||||
directoryExpansionStates: @root?.serializeEntryExpansionStates()
|
||||
@@ -304,10 +305,11 @@ class TreeView extends ScrollView
|
||||
entry = entry.view() unless entry instanceof View
|
||||
@selectedPath = entry.getPath()
|
||||
@deselect()
|
||||
entry.children('.highlight').width(@treeViewList[0].scrollWidth)
|
||||
entry.addClass('selected')
|
||||
|
||||
deselect: ->
|
||||
@treeViewList.find('.selected').removeClass('selected')
|
||||
@treeViewList.find('.selected').removeClass('selected').children('.highlight').width('')
|
||||
|
||||
scrollTop: (top) ->
|
||||
if top
|
||||
|
||||
Reference in New Issue
Block a user