Always show column headers on result page

Fixes #579

Signed-off-by: Ryan O'Hara <oharar@email.chop.edu>
Ah I missed that. You can access the header and footer views on the table `this.header` and `this.footer`. If you update the Header and Footer views to attach the row view instance (https://github.com/ryanjohara/cilantro/blob/issue-579/src/js/cilantro/ui/tables/header.js#L115) then you can access the cells the same way, e.g. `this.header.row.children.each(function(cell) { .. })`. This applies to Footer as well, but currently it’s a no-op on render.

On Aug 1, 2014, at 3:37 PM, ryanjohara <notifications@github.com> wrote:

> In src/js/cilantro/ui/tables/table.js:
> 
> > @@ -47,6 +48,46 @@ define([
> >                      this.$el.show();
> >                  }
> >              });
> > +            this.listenTo(this, 'render', this.resize, this);
> > +            _.bindAll(this, 'resize');
> > +            $(window).resize(this.resize);
> > +        },
> > +
> > +        resize: function() {
> > +            var tbody = $('tbody');
> this.$el.children().each(function() { loops over all three HTMLTableSectionElements - thead, tbody, and tfoot - but the following block only resizes the tbody columns.
> 
> this.children.each(function(body) {
>     body.children.each(function(row){
>         width = $(document).width() / row.children.length;
>         row.children.each(function(cell){
>             cell.$el.css('width', width);
>             cell.$el.css('max-width', width);
>         });
>     });
> });
> —
> Reply to this email directly or view it on GitHub.
>