Open myusufuw opened 2 years ago
The pagination component we use is from MUI: https://mui.com/material-ui/api/table-pagination/. We don't have a custom pagination component. This bug is related to the positioning of the Menu component when the menu opens to the top, instead of bottom. I managed to reproduce the bug without the DataGrid: https://codesandbox.io/s/mui-floating-issues-forked-rhimjq?file=/src/components/Vehicles/Vehicles.jsx
I'll transfer this issue to the core repo.
@yusufvalid @m4theushw can i pick up this issue?
@mbayucot
Please feel free to!
@hbjORbj Thanks
@m4theushw ok sir thank you. @mbayucot yes sir, please feel free to.
Hi all
I think this issue is not from the MUI or @popperjs/core
or React Js library but from the CSS zoom
property itself.
I also faced the same issue on the React Leaflet and Leaflet Js libraries without using any MUI or @popperjs/core
library.
Here is the full explanation https://github.com/mui/material-ui/issues/32777#issuecomment-1249211426
CC @yusufvalid @m4theushw @mbayucot @hbjORbj
Order ID 💳
48778
Duplicates
Latest version
The problem in depth 🔍
Current behavior : The pagination component appears far from its original position when the zoom style is applied like the screenshots below from my local computer.
Here is the condition before the zoom style applied (height dimension > 500px)
Here is the condition after the zoom style applied (height dimension < 500px)
Expected behavior : The pagination component appeasr from its original position whether the zoom style is applied or not.
Steps to reproduce : Steps:
Context : What I want to do is to apply the zoom property on smaller screen sizes so I create this code :
The zoom style is only applied for specific screen sizes (code from my local computer) :
Here is the codesandbox demo : https://codesandbox.io/s/mui-floating-issues-lsimnx
I also have almost the same problem, but this problem occurs in some components like Menu and Tooltip. I've raised this issue in here, but haven't found a solution yet. I hope you can help solve this problem, thank you.
Environment
Dependencies
``` "dependencies": { "@emotion/react": "^11.9.0", "@emotion/styled": "^11.8.1", "@mui/icons-material": "^5.6.2", "@mui/lab": "^5.0.0-alpha.63", "@mui/material": "^5.7.0", "@mui/styles": "^5.7.0", "@mui/x-data-grid": "^5.10.0", "@mui/x-data-grid-pro": "^5.10.0", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", "react": "^17.0.2", "react-dom": "^17.0.2", "react-router-dom": "^6.2.1", "react-scripts": "5.0.0", "web-vitals": "^2.1.3" }, ```