-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix tooltip width #4230
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. |
monholm
added a commit
that referenced
this issue
Jul 28, 2022
Stalebot has performed poorly lately, not labeling stale issues, not closing stale issues, not removing stale label when updates occur etc. E.g.: #4230 and #3804. Looking at the stalebot repo this isn't isolated to react-native-maps, and it also seems like the bot has been abandoned in favor of the stale action.
monholm
added a commit
that referenced
this issue
Jul 28, 2022
Stalebot has performed poorly lately, not labeling stale issues, not closing stale issues, not removing stale label when updates occur etc. E.g.: #4230 and #3804. Looking at the stalebot repo this isn't isolated to react-native-maps, and it also seems like the bot has been abandoned in favor of the stale action.
This is still a bug and should not have been closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Custom tooltip's width are very narrow. Each character fills a line.
There are currently 3 ways to fix it:
width: 200
), but it creates a weird ui depending of the text (too large or too small, rarely well adjusted)position: relative
property to theCallout
element (as child of theMarker
), but theMarker
is not properly positioned on the map anymore (this is particularly true when zooming on a map with a circle. We clearly see that the Marker is out of range).title
and/ordescription
props to the marker, but the tooltip is ugly and can't be styled.Suggested fixes:
a) give a
width: "100%
to theCallout
's tooltip, so the problem is gone.b) allow a
tooltipStyle
prop on the Marker so we can use the default tooltip with ease (relevant props would be:backgroundColor
,borderRadius
,titleColor
,descriptionColor
)Environment info
I'm using Expo.
For the moment, the best option I came up with is:
The text was updated successfully, but these errors were encountered: