javascript - Find closest point of a div border (relative to another div) -


i have been looking answer long time , can't figure out. need find is, having 2 div's, coordinates of closest point @ border of last div, relative first one.

capture

as can see, right not able i'm linking fixed points of each div using svg. link closest points @ border of each div.

thanks much

i got it.

finally, problem pointless , did connect center of each div , made sure div showing on top of canvas.

no matter how elements positioned, looks perfect.

thanks anyway!


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -