Skip to content

Scrolllock shifts layout. #5342

@sblad

Description

@sblad

When i set my vertical scrollbars always on with menuShouldBlockScroll, there is a padding-right added to the body which shifts entire layout and i get white stripe on the right end of the page.
Not sure how it should act, but if I set my OS settings to auto hide scrollbars it works okay.
Maybe there should be a prop to opt out from this padding adjustment?

CodeSandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions