Skip to content

Commit

Permalink
Ignore th elements when setting universal height.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasRBowers committed Apr 15, 2015
1 parent d505db3 commit e2ee8ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions responsive-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@
oheight = $(this).height();
cheight = $('tr:eq('+index+')', copy).height();
height = (oheight > cheight ? oheight : cheight);
$('th,td', original).css('height', height+'px');
$('th,td', copy).css('height', height+'px');
$('td', original).css('height', height+'px');
$('td', copy).css('height', height+'px');
});
}

function setTableHeights(original, copy) {
oheight = original.outerHeight();
cheight = copy.outerHeight();
height = (oheight > cheight ? oheight : cheight);
original.css('min-height', height+'px');
copy.css('min-height', height+'px');
oheight = original.outerHeight();
cheight = copy.outerHeight();
height = (oheight > cheight ? oheight : cheight);
original.css('min-height', height+'px');
copy.css('min-height', height+'px');
}

});
Expand Down

0 comments on commit e2ee8ae

Please sign in to comment.