Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Set z-index for the plugs an lines separately #48

Closed
logesh-freshworks opened this issue Mar 27, 2019 · 4 comments
Closed

Set z-index for the plugs an lines separately #48

logesh-freshworks opened this issue Mar 27, 2019 · 4 comments

Comments

@logesh-freshworks
Copy link

Hi, This is more of a question than an issue. Is there an option to set z-index for the line and plugs separately? Please check the image below. I had to set z-index of the leaderline higher than the rectangle html element in order for the plugs to appear above the element. But I dont want the line to appear over the element. Can anyone please help me? Thanks in advance.

Screenshot 2019-03-27 at 7 16 43 PM

@anseki
Copy link
Owner

anseki commented Mar 27, 2019

Hi @logesh-freshworks, thank you for your comment.
LeaderLine now doesn't support an option to set z-index.
Therefore, you have to customize that for the z-index you want.

All lines have each SVG element. That is, a line and its plugs are contained in one SVG element.
Therefore, easy way to set z-index to only plugs is adding new elements as plugs on your elements.

@anseki
Copy link
Owner

anseki commented Apr 3, 2019

No reply came, then I close this neglected issue.

@anseki anseki closed this as completed Apr 3, 2019
@ahmedshaaban00
Copy link

@anseki The z-index doesn't affect anything because the svg elements are being set inside the body element which makes it in a greater dom layer than other children. What should be the solution here?

@anseki
Copy link
Owner

anseki commented Nov 17, 2020

Hi @ahmedshaaban00, thank you for the comment.
Before facing z-index, maybe you should fix a bug in your code if it has a bug.
#141 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants