-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
intro.js tooltip position not set correctly on initial page render #1502
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi Dylan, Were you able to find a solution? I'm facing a similar issue but with hints instead of steps. |
I have this issue, too. Occurs not in Firefox, only in Chrome. In my case, the tooltip is not visible at all because the 'top' style property is -1100 px |
I wonder if they use an automatic software to label this issue as wontfix otherwise I don't understand why they did this on a issue that I personnally find critical. |
I was facing the same issue. I wanted tool tip to appear on top, but the first step position was not working. While debugging, found that top:50% was set and when removed or set to 0%, the tool tip moved to the top. I have used JS to fix it programmatically. This will set top: 0% after the tool tip is created, hence window.scroll is used to move the page up. You can index accordingly.
|
I was able to fix this or similar issue by calling |
Description
After setting up intro.js in a Blazor project I am working on and everything seems to work fine except for when the page initially renders, step 1 shows the tooltip positioned way above the element. Once the viewport is changed or the next button is clicked the position then functions as it should. On page render I can see that the CSS top attribute is set to 143px and once the viewport changes or the next button is clicked top is then set to 238px for all steps and display correctly.
Expected Behavior
Tooltip should be properly positioned on page render.
Actual Behavior
Tooltip is incorrectly positioned on initial page render.
Errors and Screenshots (optional)
Currently using version 2.5.0, (this code was copied over from another project), but this also occurs after updating the intro css and js to version 4.3.
Before viewport change or next button click
![image](https://user-images.githubusercontent.com/29187448/144291931-4a49f9c9-f976-4776-b604-7aa851a12200.png)
After viewport change and next button click
![image](https://user-images.githubusercontent.com/29187448/144292085-099c8ea2-3093-4a78-9915-6eb765b1ba59.png)
Example (recommended)
Intro.js has been set up using the default settings. No custom CSS changes have been made.
Environment (optional)
Version - Intro.js version 2.3
Browser - Edge & Firefox
Environment - .Net 5 & Blazor
The text was updated successfully, but these errors were encountered: