-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 tooltips not visible for NVD3 charts on Firefox (#7822) #7929
Conversation
Could you add screenshots to show the before/after of the change? Thanks! |
You may have to rebase because of Travis issues. Also can you confirm this doesn't break Chrome? |
Codecov Report
@@ Coverage Diff @@
## master #7929 +/- ##
==========================================
+ Coverage 65.59% 65.97% +0.37%
==========================================
Files 469 468 -1
Lines 22401 22297 -104
Branches 2432 2429 -3
==========================================
+ Hits 14694 14710 +16
+ Misses 7586 7466 -120
Partials 121 121
Continue to review full report at Codecov.
|
Rebase done. I cannot spot any visual differences in Chrome – nor in Firefox apart from the tooltips being back. I don't have access to IE/Edge or Safari but according to caniuse the |
I don't think the rebase worked properly, your PR now has commits that shouldn't be there... |
cf708ab
to
65782d1
Compare
65782d1
to
81eb344
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good to me then. Seems like CI was flaky though, so i'd recommend rebasing to kick off ci again
This bug was introduced by apache#7102 Using `position:absolute` on body gives `document.documentElement` a height of 0 which propagates to `clientHeight` on Firefox. This leads to a wrong calculation of the tooltip position in NVD3. The solution proposed here is to use `min-height: 100vh` instead of the current technique for stretching the body element to the full window height, thus keeping body and html together.
81eb344
to
5c795b4
Compare
@mistercrunch I think this is good to merge |
) (apache#7929)" This reverts commit 6df2a71.
@schoel-bis This PR has to be reverted from Master branch. Please see details in #8147. |
CATEGORY
Choose one
SUMMARY
The bug was introduced by #7102
Using
position:absolute
on body givesdocument.documentElement
a height of 0 which propagates toclientHeight
on Firefox. This leads to a wrong calculation of the tooltip position in NVD3.The solution proposed here is to use
min-height: 100vh
instead of the current technique for stretching the body element to the full window height, thus keeping body and html together.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
Access an NVD3 based chart in Firefox and hover with mouse.
ADDITIONAL INFORMATION
REVIEWERS