You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to open any popover, a padding-right is added as a style for the body element Why this is not the best way?
it makes some components rerender
some components is displayed in a messy way as shown in the example
The issue is present in the latest release.
I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
The padding-right is added as a style to the body element, please see the below photo
Photo: explain what happen when I open a popover
Expected Behavior 🤔
The padding-right is added as the scroll bar is hidden when I open the popover. Suggestion:
how about disabling the scrollbar but keep it displayed Facebook does so
MrOttimista
changed the title
Opening a Popover add padding-right to the body element
Opening a Popover adds padding-right to the body element
Sep 1, 2021
@mnajdova thank you for responding
Yes, it is duplicate and the answer was the behaviour is expected
but this behaviour causes a UI bug in the material ui offical web site
so, can you consider my suggested solution?
When I try to open any popover, a
padding-right
is added as a style for the body elementWhy this is not the best way?
Current Behavior 😯
The
padding-right
is added as a style to the body element, please see the below photoPhoto: explain what happen when I open a popover
Expected Behavior 🤔
The
padding-right
is added as the scroll bar is hidden when I open the popover.Suggestion:
how about disabling the scrollbar but keep it displayed
Facebook does so
Steps to Reproduce 🕹
Steps:
open popover docs => https://material-ui.com/components/popover/
open the first popover
before opening the popover
![popover-bug1](https://user-images.githubusercontent.com/40366999/131633966-9c611747-7bfb-4272-bedd-ea5d1fade60f.png)
After opening
![popover-bug2](https://user-images.githubusercontent.com/40366999/131634093-80283344-164f-4110-88a0-09d61f1151b6.png)
Context 🔦
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: