append to the vertical element so its context appears global

This commit is contained in:
Justin Palmer
2013-02-01 08:46:35 -08:00
parent 3f7c7c1b92
commit 3916f44d28

View File

@@ -36,8 +36,7 @@ class EditorStatsView extends ScrollView
super
@command 'core:cancel', @detach
@statusBar = @rootView.find '.status-bar'
@panes = @rootView.find('#panes')
@statusBar = @rootView.find('.status-bar')
@css 'background', @statusBar.css('background')
date = new Date(startDate)
@@ -51,9 +50,9 @@ class EditorStatsView extends ScrollView
@rootView.on 'mouseup', @track
draw: ->
w = @statusBar.width()
w = @rootView.vertical.width()
h = @.height()
[pt, pl, pb, pr] = [15,10,0,10]
[pt, pl, pb, pr] = [15,10,0,25]
data = d3.entries @eventLog
@@ -114,7 +113,7 @@ class EditorStatsView extends ScrollView
@attach()
attach: ->
@panes.append(@)
@rootView.vertical.append(@)
@draw()
detach: =>