Skip to content

tether-out-of-bounds set wrongly when only scrollParent is document.body #186

@matthewgertner

Description

@matthewgertner

I have a tether directly inside a DOM window with no intermediate scrollParent. When I set constraints: { to: 'scrollParent' } then I get incorrect behavior of the tether-out-of-bounds class. If I resize the window so the target and element are not visible, both get the tether-out-of-bounds class as expected. But if I then scroll them into view, the class remains. In other words, it doesn't seem to take the scroll position into account.

It seems to work fine if I use constraints: { to: 'window' } instead, but I want my code to work both when there is an intermediate scrollParent and when there isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions