     $('#visualization-table-selector > li > a').click @updateTable
 
   render: ->
-    # Setup affix bootstrap in Edit Mode
+    # force resize
+    @resize()
+    # Setup affix bootstrap
     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:    91
  tableHeaderHeight:            42

  id:                           null

    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
