Skip to content
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

[Bug]: Unexpected behavior when setting width on Data Grid body. #31357

Open
2 tasks done
baryoloraul opened this issue May 14, 2024 · 0 comments
Open
2 tasks done

[Bug]: Unexpected behavior when setting width on Data Grid body. #31357

baryoloraul opened this issue May 14, 2024 · 0 comments

Comments

@baryoloraul
Copy link

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 15.34 GB / 47.71 GB
  Browsers:
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.22621.1

"@fluentui/react-components": "^9.49.2"

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/p/sandbox/datagrid-bodysize-bug-cdk4gd

Bug Description

Actual Behavior

I am trying to set the width style on a DataGrid component's body

<DataGridBody<Item>
  style={{
     width: "500px",
}}

This causes a behavior where the Data Grid loses the row dividing lines after the specified size is reached, as shown in the next image:

image

Expected Behavior

The row dividing lines should continue to the end of the table when setting a width limit

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants