mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
Move-dialog overlays the bottom of the RootView instead of appearing next to the element
This commit is contained in:
@@ -72,13 +72,7 @@ class TreeView extends View
|
||||
@rootView.open(selectedEntry.attr('path'))
|
||||
|
||||
move: ->
|
||||
entry = @selectedEntry()
|
||||
dialog = new MoveDialog(@rootView.project, entry.attr('path'))
|
||||
@append dialog
|
||||
|
||||
dialog.css
|
||||
top: entry.position().top + entry.outerHeight() + @scrollTop()
|
||||
left: 0
|
||||
@rootView.append(new MoveDialog(@rootView.project, @selectedEntry().attr('path')))
|
||||
|
||||
selectedEntry: ->
|
||||
@find('.selected')
|
||||
|
||||
Reference in New Issue
Block a user