question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ToolTip incorrect position on navigation (with snack example): possible old bug?

See original GitHub issue

First 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

Screen Shot 2020-11-16 at 7 44 10 PM

  • 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

I appreciate any help. Cheers!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
FairyWorldcommented, Feb 25, 2022

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.

useInteractionManager={true} // need this prop to wait for react navigation

full working example is here: https://snack.expo.io/@matthewliuhello/react-native-walkthrough-tooltip-example

I use the code below, the position is correct but the mask doesn’t cover the status bar

placement="bottom"
// below is for the status bar of react navigation bar
topAdjustment={Platform.OS === 'android' ? -StatusBar.currentHeight : 0}
0reactions
matthewliuswimscommented, Dec 2, 2020

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.

useInteractionManager={true} // need this prop to wait for react navigation

full working example is here: https://snack.expo.io/@matthewliuhello/react-native-walkthrough-tooltip-example

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found