-
Notifications
You must be signed in to change notification settings - Fork 270
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
<foreignObject> doesn't seem to have the same result in Safari/Firefox as it does in Chrome browsers #220
Comments
For Safari Browsers, I found out that in |
@francisngo Have you fixed this issue |
Ah man, sorry about this (and my very delayed response); I had no idea that the way that expression evaluates would be subject to browser compat :/ I'm currently cleaning up the repo & committing myself to shipping a v2 in the coming weeks, which I will make this a part of, since I think the wisest move here is to remove that implicit base margin (breaking change -> v2) which is confusing anyways. Thank you for reporting this issue, I'll update here when it's fixed! |
Please note that #284 may be related to this. I'm still going to remove the base margins for v2, but if you're seeing odd behaviour in Safari it may also be related to this upstream issue in the browser itself. Will report back here once I've done my own investigation into cross-browser issues in v1 and how they can (hopefully) be mitigated for v2. |
For foreignObject in Safari browsers, nodes are given additional width and height and the tree links are not positioned in the correct place as they are in Chrome browsers. Similar with Firefox, styling from foreignObjectWrappers are not applied.
Are you reporting a bug, or opening a feature request?
Bug
What is the actual behavior/output?
foreignObject's width/height and positions in Safari are not equal to Chrome.
What is the behavior/output you expect?
foreignObject's and tree link's positions are off and not accurate.
Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?
View link in chrome then in safari and firefox to see the difference: https://codesandbox.io/s/0362k66m0n
What version of react-d3-tree are you using?
latest version
The text was updated successfully, but these errors were encountered: