[Mapbender-commits] r3387 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jan 2 08:15:23 EST 2009


Author: nimix
Date: 2009-01-02 08:15:23 -0500 (Fri, 02 Jan 2009)
New Revision: 3387

Modified:
   trunk/mapbender/http/javascripts/jsTree.js
Log:
http://trac.osgeo.org/mapbender/ticket/360

Modified: trunk/mapbender/http/javascripts/jsTree.js
===================================================================
--- trunk/mapbender/http/javascripts/jsTree.js	2009-01-02 12:31:38 UTC (rev 3386)
+++ trunk/mapbender/http/javascripts/jsTree.js	2009-01-02 13:15:23 UTC (rev 3387)
@@ -647,6 +647,17 @@
 	
 	jst_cm.innerHTML = renderChildren(strData + "[1][5]", "menu", true)
 	
+	//TODO find a proper solution for this
+	var treeGDE = jst_cm.parentNode.parentNode;
+	if(treeGDE.id=="treeGDE"){
+		offX -= parseInt(treeGDE.style.left);
+		offY -= parseInt(treeGDE.style.top);
+		if(treeGDE.scrollTop)
+			offY += treeGDE.scrollTop;
+		if(treeGDE.scrollLeft)
+			offX += treeGDE.scrollLeft;
+	}
+	
 	jst_cm.style.top = offY + event.clientY
 	jst_cm.style.left = offX + event.clientX
 	jst_cm.style.visibility = ""



More information about the Mapbender_commits mailing list