             @headerContainer.innerHtml = ""
 
         @w = @container.offsetWidth
-        @h = @container.offsetHeight - @layout.columnHeaderHeight
+        @h = @container.offsetHeight - @layout.header_height
 
         @last_i = 0
         @last_j = 0




generate_table = (m,n)->
    (  ( i + "," + j  for j in [0...n] by 1) for i in [0...m] by 1)


sum = (arr)->

            @container = container
        @nb_cols = @data.nb_cols()
        @nb_rows = @data.nb_rows()
        @W = sum @layout.column_widths
        @row_height  = @layout.row_height
        @H = @layout.row_height * @nb_rows
        @col_offset = cumsum @layout.column_widths
        @min_col = Math.min.apply null, @layout.column_widths
        onDomReady = =>
            document.removeEventListener "DOMContentLoaded", arguments.callee, false
            @setup()
