Connections sometimes below connectors

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 05 Jun 2013 Link to this post

    I have custom styled connections and connectors. When I drag a connection between connector A and B, the line is (correctly) on top of the connectors. However, as soon as I have selected the nodes, the connectors end up on top of the line! This weirdness is preserved if I remove the connection and add a new one.

    What is causing the connection's line to become obscured by the connectors?
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 06 Jun 2013 Link to this post

    Hello Kristoffer,

    Connectors are part of the Shapes and by default, Shapes' ZIndex is set to 2 and Connections ZIndex is set to 1 via style. But when you are attaching a connection, it's essential that the connection is on top of the shapes and we are controlling / ensuring this in code. Imagine trying to attach a connection but unable to see it because it is behind the shapes.
    By design in normal mode (Pointer Tool) shapes are on top of connections.
    By design in connection manipulation mode (Connector Tool or simply when attaching / detaching connection) connections are on top of the shapes.

    Petar Mladenov

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top