Move-dialog overlays the bottom of the RootView instead of appearing next to the element

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-27 10:39:55 -06:00
parent d737d97a81
commit 4ca75b02c5
3 changed files with 6 additions and 11 deletions

View File

@@ -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')