Skip to content

Overflow adjust not working properly when parent has overflowY #50

@bryceosterhaus

Description

@bryceosterhaus

I found this issue while working with some fixed elements that have overflow styles in the parent. Is this expected? I would think that the adjust feature would pull the element back into the viewport.

Bug Example: https://codesandbox.io/s/dom-align-bug-scymr

Expected Result: Clicking on button would auto adjust dropdown to be within the window.

Actual Result: Dropdown element flows off of page, adding a scroll in the x direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions