Closed pascal-mormin closed 3 years ago
@pascal-mormin Thanks for the report, I confirm the issue:
Actual
Expected
I have already seen similar reports in the main repository. It's an issue with the display transition. A couple of solutions: 1. remove the Grow component, 2. force resize in a timeout, 3. implement https://github.com/mui-org/material-ui/issues/9337.
@oliviertassinari what you will suggest? Wait for or make PR in core or fix it in pickers?
@dmtrKovalenko 2. would be a reasonable compromise.
Another alternative would be to update the Grow transition, to match the one of the Menu: https://material.io/components/menus/#exposed-dropdown-menu. It changes the opacity and translation, there is no transformation involved. It might be the best one actually :).
Hi 🙋♂️, I have the same problem when I use KeyboardDateTimePicker with dir=“rtl”. Is there a solution?
This is fixed in @mui-lab@5.0.0-alpha.49
. Unclear when exactly it was fixed. Probably when implementing the new design.
I also have the same issue using Tab of material ui.
@bibi0504 We should have solved this in the latest version of Material UI. We started to rely on ResizeObserver
. https://github.com/mui/material-ui/pull/27791
Environment
Steps to reproduce
It seems there is a problem with TabIndicator size on DateTimePicker when opening dialog. I got this problem on my project but i can reproduce it on material-ui pickers site's demo.
1- Go to DateTime Picker basic usage example on the website 2- Open the dialog
The tab indicator (120px) don't take all the first tab size (160px). Switching to the hour size (2nd tab), tab indicator takes all the size. Switching to the first tab tab indicator now takes all the size (160px)
Expected behavior
Indicator takes all the tab width
Actual behavior
Indicator dont take all the tab width when opening dialog.
Live example
Try it on basic usage : material-ui pickers site's demo
Search keywords: