Closed GoogleCodeExporter closed 9 years ago
I was able to add the image by doing as below. I found this piece of code on
discussion boards. It works.
However, my popup div on click of the image is not positioning at the mouse
click. It goes off the page and adds scroll bar.
left:event.pageX,
top:event.pageY,
position: "absolute"
any suggestons?
var postImg = document.createElement('img');
postImg.setAttribute('src', imagesFolder + "down_arrow.png");
postImg.setAttribute('id', "image"+node.data.xxxNode.attributes.ID);
postImg.setAttribute('class', "image_style");
$(span).find('.dynatree-title').after(postImg);
Original comment by visa...@gmail.com
on 15 May 2013 at 5:48
I did the below for positioning and works great
event.target.offsetLeft,
event.target.offsetTop
I add the popup div to dynatree like below
appendTo($("#tree").find("span.dynatree-node"));
Please close the issue
Original comment by visa...@gmail.com
on 15 May 2013 at 6:52
thanks for the feedback
Original comment by moo...@wwwendt.de
on 16 May 2013 at 2:54
Original issue reported on code.google.com by
visa...@gmail.com
on 12 May 2013 at 5:47