Skip to content

Commit

Permalink
min change
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Oct 14, 2024
1 parent f1e757e commit b25e05e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ export class ColumnResizeDirective {
columns[this.columnIndex].style.width = `${newWidth}px`;

const rows = this.table?.querySelectorAll('tr');
console.log("row count:", rows);
//console.log("row count:", rows);

rows?.forEach((row) => {
const cells = row.querySelectorAll('td');
if (cells[this.columnIndex]) {
cells[this.columnIndex].style.minWidth = `${newWidth}px`;
cells[this.columnIndex].style.width = `${newWidth}px`;
}
});
Expand Down

0 comments on commit b25e05e

Please sign in to comment.