Skip to content

Commit

Permalink
fixed the cell header order associated to a column when the colgroup,…
Browse files Browse the repository at this point in the history
… col tag are defined.
  • Loading branch information
duboisp committed Aug 23, 2012
1 parent a903fa3 commit b415a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/workers/parser.table.js
Expand Up @@ -562,7 +562,7 @@

// Skip this colgroup, this should happened only once and should represent the header colgroup

// TODO: Assign the headers for this group
// Assign the headers for this group
for (i = 0, _ilen = curColgroupFrame.col.length; i < _ilen; i += 1) {
gzCol = curColgroupFrame.col[i];
gzCol.header = [];
Expand Down Expand Up @@ -746,7 +746,7 @@

column.header = [];
// Find the lowest header that would represent this column
for (j = (tmpStack.length - 1); j >= (groupLevel - 1); j -= 1) {
for (j = (groupLevel - 1); j < tmpStack.length; j += 1) {
for (i = (curColgroupFrame.start - 1); i < curColgroupFrame.end; i += 1) {
if ((tmpStack[j].cell[i].colpos >= column.start &&
tmpStack[j].cell[i].colpos <= column.end) ||
Expand Down

0 comments on commit b415a5f

Please sign in to comment.