     @div class: 'editor-stats-wrapper', tabindex: -1, =>
       @div class: 'editor-stats', outlet: 'editorStats'
 
+  pt: 15
+  pl: 10
+  pb: 3
+  pr: 25
+
   initialize: (@rootView) ->
     super
 
-    @subscribe $(window), 'resize', _.debounce((=> @draw()), 300)
+    resizer = =>
+      @draw()
+      @update()
+    @subscribe $(window), 'resize', _.debounce(resizer, 300)
 
   draw: ->
     @editorStats.empty()

        else
          'none'

    bars = vis.selectAll('rect.bar')
      .data(data)
    .enter().append('rect')
      .attr('x', (d, i) => @x i)

      .attr('width', w)
      .attr('height', h)
    .append('g')
      .attr('transform', "translate(#{@pl},#{@pt})")

    vis.append('g')
      .attr('class', 'x axis')
