Skip to content

Undocumented alwaysByViewport option #363

Closed

Description

@GeoMarkou

In the align.overflow configuration there is an alwaysByViewport option offered by dom-align:

if alwaysByViewport is true, the it will adjust if node is not inside viewport

This solved an issue I was having with a large page that scrolled horizontally and vertically, the tooltip would disappear off the side of the page. It would be great if this was documented somewhere.

Activity

  1. karpo518 commented on Mar 15, 2024

    @karpo518

    When the trigger button is located near the border of the browser window, then the popup falls outside the window and creates a scroll. I was unable to resolve this issue using the option adalwaysByViewport, adjustX or adjustY

  2. samanthaamodeo-cognition commented on May 11, 2026

    @samanthaamodeo-cognition

    I agree with wanting some documentation on this option. I had tried passing it as an option to align.overflow to solve some cut-off Tooltips. While it did seem to shift the tooltip closer to being fully in view, still did not fully resolve cut-off tooltips and/or scrollbars.

  3. added a commit that references this issue on May 17, 2026
    4202bd6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions