From 0d1b5be2c3b0f4eea0a1d944e1ebd73e56ce23bb Mon Sep 17 00:00:00 2001 From: Julius Janzon Date: Mon, 1 Jul 2024 16:18:18 +0200 Subject: [PATCH] Fixed #15876 - TreeTable: Resizing one column resizes other columns as well the resizing is already done within the method "setWidth" so it doesn't need to be done before that. Doing it twice resulted in adding the delta twice. --- src/app/components/treetable/treetable.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/app/components/treetable/treetable.ts b/src/app/components/treetable/treetable.ts index 697ced086a2..00fc194fc67 100755 --- a/src/app/components/treetable/treetable.ts +++ b/src/app/components/treetable/treetable.ts @@ -1439,11 +1439,6 @@ export class TreeTable implements AfterContentInit, OnInit, OnDestroy, Blockable let scrollableBodyTable = DomHandler.findSingle(scrollableView, '.p-treetable-scrollable-body table') || DomHandler.findSingle(scrollableView, '.p-scroller-viewport table'); let scrollableHeaderTable = DomHandler.findSingle(scrollableView, 'table.p-treetable-scrollable-header-table'); let scrollableFooterTable = DomHandler.findSingle(scrollableView, 'table.p-treetable-scrollable-footer-table'); - scrollableBodyTable.style.width = scrollableBodyTable.offsetWidth + delta + 'px'; - scrollableHeaderTable.style.width = scrollableHeaderTable.offsetWidth + delta + 'px'; - if (scrollableFooterTable) { - scrollableFooterTable.style.width = scrollableFooterTable.offsetWidth + delta + 'px'; - } let resizeColumnIndex = DomHandler.index(column); const scrollableBodyTableWidth = column ? scrollableBodyTable.offsetWidth + delta : newColumnWidth;