Skip to content
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

feat: referenceNode support for reference objects (closes #800) #801

Commits on Jul 9, 2019

  1. feat: referenceNode support for reference objects

    referenceNode can be specified to better facilitate non-fixed
    positioning when a popper's reference is a "reference object".
    
    In particular, reference objects can now return coordinates in
    "client-space" (i.e. getBoundingClientRect) and popper will
    calculate positioning using the specified referenceNode rather
    then falling back to the documentElement.
    
    Consequently, enabling Popper.enableEventListeners() will now
    work as expected, automatically updating the popper position, when
    scrolling and resizing the browser window; assuming a referenceNode
    has been provided.
    Benjamin-Dobell committed Jul 9, 2019
    Copy the full SHA
    16172fd View commit details
    Browse the repository at this point in the history