Skip to content

Prosition prop is not working correctly #2099

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

Open
Gdiazdiaz opened this issue Apr 16, 2025 · 0 comments
Open

Prosition prop is not working correctly #2099

Gdiazdiaz opened this issue Apr 16, 2025 · 0 comments

Comments

@Gdiazdiaz
Copy link

When specifying position: 'bottom-align-middle' for a step, the tooltip often ignores the setting and appears on the left side of the element (or elsewhere), instead of centered below as expected.

Steps to Reproduce:

  • Create a step like:
    {
    element: '#my-element',
    intro: 'This is a test tooltip.',
    position: 'bottom-align-middle'
    }
  • Run introJs().start();
  • Observe the tooltip placement.

Expected Behavior:

The tooltip should appear directly beneath the target element, centered horizontally (middle aligned).

Actual Behavior:

The tooltip is often placed on the left, or some other unrelated position. This happens even when there's sufficient space below the element for proper placement.

Notes:

  • Tried with latest Intro.js version.
  • Happens regardless of scrollToElement or scrollTo: 'tooltip' settings.
  • Other positions (like 'bottom' or 'top') behave as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant