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

[material-ui][Grid] faulty wrapping on firefox if container has non-integer pixel width #42069

Open
SCjona opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
browser: Firefox component: Grid The React component. package: material-ui Specific to @mui/material status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@SCjona
Copy link

SCjona commented Apr 30, 2024

Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/mui-bug2-8kcsfp

Steps:

  1. Resize window width on Firefox

Current behavior

Firefox:

firefox.mp4

Expected behavior

Same as chromium:

chrome.mp4

Context

This only happens when the container has a decimal (non-integer) pixel width. If you remove the width attribute from the container in the demo it works fine.

Your environment

npx @mui/envinfo

System:
OS: macOS 14.4.1
Binaries:
Node: 22.0.0 - /opt/homebrew/bin/node
npm: 10.5.1 - /opt/homebrew/bin/npm
pnpm: Not Found
Browsers:
Chrome: Not Found
Edge: Not Found
Safari: 17.4.1

Additional info:
Firefox - 125.0.3 (64-bit)
Chromium - Version 126.0.6450.0 (Developer Build) (arm64)

Search keywords: grid wrapping firefox

@SCjona SCjona added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 30, 2024
@zannager zannager added the component: Grid The React component. label Apr 30, 2024
@mj12albert mj12albert added the package: material-ui Specific to @mui/material label May 1, 2024
@mj12albert mj12albert changed the title MUI Grid faulty wrapping on firefox if container has non-integer pixel width [material-ui][Grid] faulty wrapping on firefox if container has non-integer pixel width May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: Firefox component: Grid The React component. package: material-ui Specific to @mui/material status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants