-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Row doesn't have a right border #7956
Comments
You can't use the traditional border property because it increases the size of the row. At the same time, the container where the row lives in has |
If you can use I noticed that, when the scrollbar is present, there's a bug that makes the row to extend beyond the visible part, making the right border invisible. This can be solved with: diff --git a/packages/grid/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx b/packages/grid/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx
index 9d2592fd3..322679a90 100644
--- a/packages/grid/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx
+++ b/packages/grid/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx
@@ -249,7 +249,7 @@ export const useGridVirtualScroller = (props: UseGridVirtualScrollerProps) => {
const handleResize = React.useCallback<GridEventListener<'debouncedResize'>>((params) => {
setContainerDimensions({
- width: params.width,
+ width: rootRef.current?.clientWidth || params.width,
height: params.height,
});
}, []); When we set |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://stackblitz.com/edit/react-pxmuva?file=demo.js
Current behavior 😯
As you can see on the example, it's impossible to have a border right on column even if there is no horizontal scroll
Expected behavior 🤔
The customization of the row should allow to have borders
Context 🔦
No response
Your environment 🌎
No response
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: