Fixed #1355 - DataTable row group and resizable column not working together

pull/1361/head
Tuğçe Küçükoğlu 2021-06-18 16:41:15 +03:00
parent 217a5701d2
commit 10f47c6ff9
1 changed files with 7 additions and 5 deletions

View File

@ -1095,12 +1095,14 @@ export default {
for (let child of children) { for (let child of children) {
for (let row of child.children) { for (let row of child.children) {
let resizeCell = row.children[colIndex]; let resizeCell = row.children[colIndex];
resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px'; if (resizeCell) {
resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px';
if (this.columnResizeMode === 'fit') { if (this.columnResizeMode === 'fit') {
let nextCell = resizeCell.nextElementSibling; let nextCell = resizeCell.nextElementSibling;
if (nextCell) { if (nextCell) {
nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px'; nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px';
}
} }
} }
} }