-
Notifications
You must be signed in to change notification settings - Fork 68
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
Not drawing to Target when position style is "absolute" #83
Comments
Hi! Why did you close your issue? Did you solve your problem? |
yes friend - I understand that I suppose to make the position of the ArecherElement absolute and not the contained div - and this will do the trick i needed, thanks! |
sorry friend but i need to reopen the issue because the position: absolute does not work on ArcherElemnets as it works on div (or any other regular element). |
Thank you for the example @Eliav2 that is really helpful. I see only two problems:
|
Hi @pierpo, thank you for the library. Really useful stuff. I'm having a similar use case for |
Hey @dooleyb1! Thank you for the kind words I really appreciate 😄 So, I added some documentation on the README about this yesterday. Can you tell me if it is enough? |
That does help thank you, I can see the arrows are now being redrawn however it turns out my issue is not directly related to this. I will open a new issue now and you can take a look if you like! |
This is here - #92 |
Hi, is there any news about the absolute-position issue. With the recent version, it is not possible to set style attributes on the ArcherElement anymore. If my boxes have an absolute position, there are no connections drawn in my case. |
Hey @escv ! I just read the thread again, and I thought it was solved. |
Thank you @pierpo for the quick response. This maybe due to a misconfiguration on my side. I created a simple example with absolute positions here https://codesandbox.io/s/vigorous-bogdan-1f90bh?file=/src/App.js |
Amazing, thank you for providing an example. By inspecting this, I can see that something is wrong with the views. The height is 0 🤔 I also noticed that you use a very old version! Which can cause some layout issues. Would you be able to upgrade? My recommendations:
|
Bumping to 4.2.0 + defining a style that sets a width+height solves your problem. Width+height is not the ideal solution but I'll let you figure out something better: my point is that it's not related to the lib 😊 |
see here(the official example with a little change): https://codesandbox.io/s/react-archer-uses-wlqxv
position: absolute not working well, and there is no option to offset arrow anchors by given property.
any help?
The text was updated successfully, but these errors were encountered: