From 43aad6f1f7adb2505c1fde7ed7adc9e56d9000d1 Mon Sep 17 00:00:00 2001 From: Hossein Ghojavand Date: Tue, 30 Jul 2024 11:25:51 +0330 Subject: [PATCH] NEO-2697 feat: Handel Rtl Resizable Table Primeng --- src/app/components/table/table.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index b15d650b46b..69b927a9f3e 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -2506,7 +2506,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable } onColumnResizeEnd() { - let delta = this.resizeHelperViewChild?.nativeElement.offsetLeft - this.lastResizerHelperX; + const isRTL = DomHandler.isRTL(this.containerViewChild?.nativeElement); + let delta= this.resizeHelperViewChild?.nativeElement.offsetLeft - this.lastResizerHelperX; + if (isRTL) delta *= -1; let columnWidth = this.resizeColumnElement.offsetWidth; let newColumnWidth = columnWidth + delta; let minWidth = this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g, '') || 15;