-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Improved tooltips render in wrong position in data tables #4217
Comments
Thanks for reporting. Exact same problem as #3453, which I currently assume to be not fixable. I'll look into it when I find some time, but I don't think there's an easy fix without giving up scrollable tables. |
Got it, thanks! One solution that comes to mind (for this issue and not the other), would it be possible to disable improved tooltips for hoverable text within data tables? Falling back to the browser's standard tooltips in this specific case would be perfectly fine for us. Another more complex potential solution (probably also just for tooltips and not annotations) might be to pass the cursor's position to CSS with JS, and use that position to decide where to show the tooltips? |
As a quick fix yes, but we really need to fix the problem with data tables. I'll provide the fix as soon as I'm back from vacation. Sorry for the temporary inconvenience. |
Just chiming in for a resolution as this is the exact issue I am facing as well. |
Fixed in squidfunk/mkdocs-material-insiders@2b4e34c0d. I've exempted tooltips in |
I'm not able to get this working, the mispositioned tooltip no longer appears in the upper left, but browser native tooltips don't appear either unless I remove |
@jonaharagon could you please share a short Markdown snippet that reproduces the problem? |
Sorry, I figured out what I was doing wrong, it is working 👍 |
Not working for me either. Tooltip either shows in upper left like before, or not at all. Still fairly new to git/github processes though, so not sure I did this correctly. Ran the following to upgrade my local install:
My markdown data tables have inline |
@hrylandvest as already noted, a Markdown snippet that reproduces the error is essential for me to be able to look into the problem. |
Experimental fix in squidfunk/mkdocs-material-insiders@30d747494. The problem is that tables report offsets for their children relative to themselves, even though they are not relatively positioned. This trips up the positioning computation of tooltips. I think we need to handle tables separately and account for this behavior, which I just did in the linked commit. If this proves to be a viable fix, I'll refactor the logic, but we first need to see whether it fixes all shortcomings. If it turns out to be the right fix, it should also solve or at least help to solve #3453. Ohne.Titel.mp4 |
Released as part of 8.4.3+insiders-4.22.1. If the issue persists or new edge cases appear, please reopen. |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
If you enable improved tooltips and add an abbreviation to content inside a data table, the tooltip appears in the wrong location (top left corner of page).
Expected behaviour
Tooltip should appear underneath abbreviation.
Actual behaviour
(This same behavior happens for me on the unmodified mkdocs-material-insiders reference website, but I don't have a nice screenshot handy)
Steps to reproduce
Package versions
Configuration
System information
(Some other users reported this on other operating systems and browsers: privacyguides/privacyguides.org#1510)
The text was updated successfully, but these errors were encountered: