-
Notifications
You must be signed in to change notification settings - Fork 28
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
Scroll bar is gone with using CascadingHoverMenus #37
Comments
This happens only with the cascading hover menus, not with the other examples? I'm not sure what could be causing it in this library since the only CSS I inject in this case is @oliviertassinari any idea about this? Since |
@oliviertassinari click-away detection could be implemented with a capture listener on |
@jedwards1211 There are a couple of open issues about this problem on the main repository, I believe we had discussed this problem in more details already. However, there are no open effort to improve this, as far as I know. |
@jedwards1211 I don't know if it's the right word choice though. Even if injected |
@oliviertassinari does |
@jedwards1211 The jump can be fixed by adding the |
Do you mean to not use |
Yes, we need to refactor the Popover to be able to work like a non modal |
I had the same problem and I fixed it by adding the prop This is my HoverPopover: <HoverPopover
PaperProps={{
sx: [
{
border: (theme) => `solid 1px ${alpha(theme.palette.grey[500], 0.08)}`,
minWidth: 200,
ml: 0.5,
overflow: 'inherit',
},
],
}}
anchorOrigin={{ horizontal: 'right', vertical: 'bottom' }}
disableScrollLock
transformOrigin={{ horizontal: 'right', vertical: 'top' }}
{...other}
>
<ArrowStyle className='arrow' />
{children}
</HoverPopover> |
it works, Thanks! |
The hover menu was ported with nextjs + typescript.
When hover, scrollbar disappears and occurs under the new css attribute of body
padding-right: 20px; overflow: hidden;
. I used the example 'CascadingHoverMenus'.The first status is
position: static
and when scroll down,position: fixed
. I changed it toposition: sticky
and the symptoms were the same.Attaching the GIF below:
The code i wrote is as follows:
I'd appreciate it if you could tell me the solution.
The text was updated successfully, but these errors were encountered: