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 for Tooltip position in Firefox on SVG's #955
Conversation
looks good. please squash your commits and follow the commit guidelines here: https://github.com/react-bootstrap/react-bootstrap/blob/master/CONTRIBUTING.md and we are good to go. thanks for helping out :) |
Do we need some test to prevent future regressions ? |
Ideally, but in this case I'd be okay with adding a comment unless you want to set up Travis to also use Firefox. |
I've tried Firefox tests. Then I'm fine with just a comment 😄 But a squashing is definitely needed 😓 |
Okay. @petesaia: can you add a comment explaining why this is necessary (maybe with a TODO to add a test case to cover this), and squash your commits? We'll deal with setting up CI on FF later. |
So after looking at this issue again with a clearer head, I'm a little confused. The problem is happening because With that said, it looks like I squashed my commits, but i'd just recommend using the values from these methods so logic is more centralized. What do you think? Update: More to the point - I don't think there is any real problem with using jQuery, I just think the values from these methods should be more consistent with |
We use jQuery for IE8 compat - same reason I don't use GBCR there, because it doesn't return width/height on IE8. |
@petesaia Can you add the comment and squash your commits? |
@taion I hate to sound so noobish, but could you explain how else you'd like me to squash the commits and where to comment? So far, i've done a |
Don't do the merge yourself - when I click the "merge" button, GH will do it for me. What you need to do is to do Add the comment where you made your changes. |
Sorry for the delay! |
No worries. Looking good. Can you just add that comment around there real quick explaining why this is necessary? |
@petesaia I think he means add a comment to the code itself, not just on the PR diff. |
Done. |
Gahhh merge conflict. Mind rebasing and re-submitting? This looks good to go otherwise. |
I've rebased, but it's still throwing a:
Any ideas? |
You probably need to do: https://help.github.com/articles/syncing-a-fork/ |
Sent a new one. |
For future reference as well if you don't want to close a PR just to open a new one you can use git to force push your branch after a rebase. That will update the PR with the new branch automatically. Force push can be problematic in some cases which is why some people are weary of it, but it is useful in cases like this. |
@mtscout6 That's certainly good to know, thanks. |
Possibly related to #99
The
offsetWidth
andoffsetHeight
were coming inundefined
thus resulting in a calculatedNaN
. Resolving them to 0 did the trick.