diff --git a/apps/assets/templates/assets/_node_tree.html b/apps/assets/templates/assets/_node_tree.html index fc7f4ae06..b4b5040b0 100644 --- a/apps/assets/templates/assets/_node_tree.html +++ b/apps/assets/templates/assets/_node_tree.html @@ -216,8 +216,9 @@ function OnRightClick(event, treeId, treeNode) { function showRMenu(type, x, y) { var offset = $("#tree-node-id").offset(); + var scrollTop = document.querySelector('.treebox').scrollTop; x -= offset.left; - y -= offset.top; + y -= offset.top + scrollTop; x += document.body.scrollLeft; y += document.body.scrollTop + document.documentElement.scrollTop; rMenu.css({"top":y+"px", "left":x+"px", "visibility":"visible"});