Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

md-progress doesn't take full table width when thead with multiple tr are used #622

Open
Bad-Y opened this issue Sep 27, 2017 · 0 comments

Comments

@Bad-Y
Copy link

Bad-Y commented Sep 27, 2017

Hello,

When using multiple tr in the thead with the attribute "row-span" the progress will take less than 100% of the table width.

Here is a codepen to demonstate the issue.

I think that I've found the issue in the column counter function that counts only the last tr cells :

https://github.com/daniel-nagy/md-data-table/blob/master/src/scripts/mdTable.js#L104

self.columnCount = function () {
      return self.getRows($element[0]).reduce(function (count, row) {
        return row.cells.length > count ? row.cells.length : count;
      }, 0);
    };
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant