ToolTip incorrect position on navigation (with snack example): possible old bug?
See original GitHub issueFirst off: I want to say this is a great library, and thank you for making this! 😄 I unfortunately have a bug (easy to demonstrate) that I’ve spent a good deal of time trying to solve.
Problem/Background
snack: https://snack.expo.io/@matthewliuhello/tooltip-positioned-incorrectly-if-navigating-to-screen-with-it - I tired to make this e.g. succinct/small as possible
- when navigating (react-navigation) to a screen that will show a tooltip on mount, that tooltip is positioned incorrectly (at least on iOS)
- but if you programmatically trigger the tooltip to show, everything is fine. <-- as shown in the snack.
Attempt at solution
- it seems like this bug was fixed https://github.com/jasongaare/react-native-walkthrough-tooltip/pull/10 - idk if there was a regression error
- I tried setting a timeout of ~200ms using
useEffect
to show the tooltip after the component mounts. The longer I make the timeout, the less likely the issue is, but it is janky
I appreciate any help. Cheers!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Bootstrap tooltip in wrong position on initial hover, then in ...
I think the problem is occurring because the div that the tooltip is attached to is absolutely positioned.
Read more >Changelog | ArcGIS Hub
Fixed an internationalization bug where tooltips could wrap the text incorrectly in certain languages. Fixed a broken link on the Hub Basic overview...
Read more >How to: Position a ToolTip - WPF .NET Framework
Learn how to specify the position of a ToolTip in a Windows Presentation Foundation (WPF) application by using a set of five properties....
Read more >News - Steam Community Announcements
Fixed wrong tooltip for Onion Slices. - Fixed pies and cakes being able to be sliced when uncooked. - Fixed frozen ice cream...
Read more >Tooltips for Gantt Elements - DHTMLX Documentation
Hello Mudit, We know about that bug, it will be fixed in the future. Now, as a workaround, you can change the tooltip...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I use the code below, the position is correct but the mask doesn’t cover the status bar
solved
I didn’t see it in props docs, but after looking at the original issue more closely, i realized we can add the prop
useInteractionManager
and it’ll work.full working example is here: https://snack.expo.io/@matthewliuhello/react-native-walkthrough-tooltip-example