     console.log 'resize!'
     if !@story and @edit
       windowHeight = $(window).height()
+      @visualizationHeaderHeight = $('.visualization-graph .visualization-header').outerHeight()
       graphHeight = windowHeight - @mainHeaderHeight - @visualizationHeaderHeight - @tableHeaderHeight
       tableHeight = (windowHeight*0.5) + @tableHeaderHeight
       @visualizationTable.css 'top', graphHeight + @visualizationHeaderHeight

    $('#visualization-table-selector > li > a').click @updateTable

  render: ->
    # Setup affix bootstrap in Edit Mode
    if !@story and @edit
      @setupAffix()
    # force resize
    @resize()
    # fetch model & collections
    syncCounter = _.after 3, @onSync
    @visualization.fetch  {url: '/api/visualizations/'+@id,               success: syncCounter}

class Visualization

  mainHeaderHeight:             84
  visualizationHeaderHeight:    null
  tableHeaderHeight:            42

  id:                           null
