FSN#38917 neemt nu als eerste de width van de hele rij over

svn path=/Website/trunk/; revision=32261
This commit is contained in:
2017-01-09 08:40:33 +00:00
parent 960d2d379d
commit 42514531db

View File

@@ -420,20 +420,18 @@ function updateTableHeaders() {
var originalHeaderRow = $(".tableFloatingHeaderOriginal", this);
var floatingHeaderRow = $(".tableFloatingHeader", this);
// to do: samenvoegen met .children()
// Copy row width from whole table
floatingHeaderRow.css("width", originalHeaderRow.width());
// Copy cell widths from original header cells
$("th", floatingHeaderRow).each(function(index) {
var cellWidth = $("th", originalHeaderRow).eq(index).css('width');
$(this).css('width', cellWidth);
});
// Some <thead>'s contain <td>'s
$("td", floatingHeaderRow).each(function(index) {
var cellWidth = $("td", originalHeaderRow).eq(index).css('width');
var originalHeaderRowChildren = $(originalHeaderRow).find("TH, TD");
$(floatingHeaderRow).find("TH, TD").each(function(index) {
var cellWidth = originalHeaderRowChildren.eq(index).width();
$(this).css('width', cellWidth);
});
// Copy row width from whole table
floatingHeaderRow.css("width", $(this).css("width")-1);
var insideFrame = $(this).offset();
var outsideFrame = $(window.frameElement).offset();