@@ -8,7 +8,6 @@ import { getHorizontalGap, getVerticalGap } from "../itemGapUtilities"
88import type { GridProps } from "../types"
99import { useDataDimension } from "../useDataDimension"
1010import { useIndicesForDimensions } from "../useDimensionIndices"
11- import { useRTLWarnings } from "../useRtlWarnings"
1211import { useScrollAdjustWindowDims } from "../useScrollAdjustedDim"
1312import { useScrollItems } from "../useScrollItems"
1413import { useSmartSticky } from "../useSmartSticky"
@@ -35,8 +34,6 @@ export function Grid<T, L = unknown, R = unknown>({
3534 style,
3635 gap,
3736
38- rtl,
39-
4037 width : sizingWidth ,
4138 height : sizingHeight ,
4239
@@ -56,11 +53,8 @@ export function Grid<T, L = unknown, R = unknown>({
5653 const [ width , height , browserWidth ] = useWindowDimensions ( windowRef )
5754 const [ overscan , disableSticky ] = useSmartSticky ( browserWidth , userOverscan , userDisableSticky )
5855
59- useRTLWarnings ( { rtl, disableSticky, pinnedLeft, pinnedRight } )
60-
6156 const [ topOffset , leftOffset , onScroll ] = useWindowScroll ( {
6257 userOnScroll,
63- rtl : rtl ?? false ,
6458 } )
6559
6660 const [ adjustedWidth , adjustedHeight ] = useScrollAdjustWindowDims ( {
@@ -133,7 +127,6 @@ export function Grid<T, L = unknown, R = unknown>({
133127 horiEnd,
134128 horiStart,
135129 horizontalGap,
136- rtl,
137130 runningHeight,
138131 runningWidth,
139132 vertEnd,
@@ -159,7 +152,6 @@ export function Grid<T, L = unknown, R = unknown>({
159152 width,
160153 position : "relative" ,
161154 overflow : "auto" ,
162- direction : rtl ? "rtl" : "ltr" ,
163155 } }
164156 >
165157 < div
@@ -170,12 +162,10 @@ export function Grid<T, L = unknown, R = unknown>({
170162 >
171163 < StickyDiv
172164 disabled = { disableSticky ?? false }
173- rtl = { rtl ?? false }
174165 height = { adjustedHeight }
175166 width = { adjustedWidth }
176167 >
177168 < ScrollDiv
178- rtl = { rtl }
179169 disableSticky = { disableSticky }
180170 topOffset = { topOffset }
181171 leftOffset = { leftOffset }
@@ -187,18 +177,16 @@ export function Grid<T, L = unknown, R = unknown>({
187177 < div
188178 style = { {
189179 display : "flex" ,
190- width : adjustedWidth ,
180+ width : width ,
191181 position : "sticky" ,
192- left : rtl ? undefined : 0 ,
193- right : rtl ? 0 : undefined ,
182+ left : 0 ,
194183 } }
195184 >
196185 { pinnedLeft && (
197186 < PinnedColumn
198187 Component = { children }
199188 totalWidth = { leftTotalWidth }
200- left = { rtl ? undefined : 0 }
201- right = { rtl ? 0 : undefined }
189+ left = { 0 }
202190 topOffset = { disableSticky ? 0 : - topOffset }
203191 columns = { pinnedLeft }
204192 widths = { lWidths }
@@ -208,15 +196,13 @@ export function Grid<T, L = unknown, R = unknown>({
208196 verticalGap = { verticalGap }
209197 horizontalGap = { horizontalGap }
210198 runningHeight = { runningHeight }
211- rtl = { rtl }
212199 />
213200 ) }
214201 { pinnedRight && (
215202 < PinnedColumn
216203 Component = { children }
217204 totalWidth = { rightTotalWidth }
218- left = { rtl ? 0 : undefined }
219- right = { rtl ? undefined : 0 }
205+ right = { 0 }
220206 topOffset = { disableSticky ? 0 : - topOffset }
221207 columns = { pinnedRight }
222208 widths = { rWidths }
@@ -227,7 +213,6 @@ export function Grid<T, L = unknown, R = unknown>({
227213 horizontalGap = { horizontalGap }
228214 pinnedRight
229215 runningHeight = { runningHeight }
230- rtl = { rtl }
231216 />
232217 ) }
233218 </ div >
0 commit comments