From a93fc19149b075e28fdf54858dc85c1d158640f5 Mon Sep 17 00:00:00 2001 From: Bernie Sumption Date: Sat, 6 Jun 2026 21:52:40 +0100 Subject: [PATCH] AG-17512 Fix RTL header columns offset by vertical scrollbar width (#13971) --- .../styles/src/internal/base/parts/_common-structural.scss | 2 +- packages/ag-grid-community/src/theming/core/css/_general.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/community-modules/styles/src/internal/base/parts/_common-structural.scss b/community-modules/styles/src/internal/base/parts/_common-structural.scss index f603b90c31e..60e2ad71d9a 100644 --- a/community-modules/styles/src/internal/base/parts/_common-structural.scss +++ b/community-modules/styles/src/internal/base/parts/_common-structural.scss @@ -829,7 +829,7 @@ } } - .ag-rtl .ag-grid-scrolling-cells { + .ag-rtl .ag-row .ag-grid-scrolling-cells { // when scrollable, offset for the vertical scrollbar on the left in rtl. margin-left: var(--ag-internal-pinned-left-sticky-offset, 0px); } diff --git a/packages/ag-grid-community/src/theming/core/css/_general.css b/packages/ag-grid-community/src/theming/core/css/_general.css index 3ba057c2bf0..f4faaaf6b20 100644 --- a/packages/ag-grid-community/src/theming/core/css/_general.css +++ b/packages/ag-grid-community/src/theming/core/css/_general.css @@ -343,7 +343,7 @@ } } - :where(.ag-grid-scrolling-cells) { + :where(.ag-row .ag-grid-scrolling-cells) { /* when scrollable, offset for the vertical scrollbar on the left in rtl. */ margin-left: var(--ag-internal-pinned-left-sticky-offset, 0); }