dojo.html.placeOnScreenAroundElement = function(	/* HTMLElement */node,	/* HTMLElement */aroundNode,	/* integer */padding,	/* string? */aroundType,	/* string? */aroundCorners,	/* boolean? */tryOnly){	//	summary	//	Like placeOnScreen, except it accepts aroundNode instead of x,y	//	and attempts to place node around it. aroundType (see	//	dojo.html.boxSizing in html/layout.js) determines which box of the	//	aroundNode should be used to calculate the outer box.	//	aroundCorners specify Which corner of aroundNode should be	//	used to place the node => which corner(s) of node to use (see the	//	corners parameter in dojo.html.placeOnScreen)	//	aroundCorners: {'TL': 'BL', 'BL': 'TL'}	var best, bestDistance=Infinity;	aroundNode = dojo.byId(aroundNode);	var oldDisplay = aroundNode.style.display;	aroundNode.style.display="";	var mb = dojo.html.getElementBox(aroundNode, aroundType);	var aroundNodeW = mb.width;	var aroundNodeH = mb.height;	var aroundNodePos = dojo.html.getAbsolutePosition(aroundNode, true, aroundType);	aroundNode.style.display=oldDisplay;	for(var nodeCorner in aroundCorners){		var pos, desiredX, desiredY;		var corners = aroundCorners[nodeCorner];		desiredX = aroundNodePos.x + (nodeCorner.charAt(1)=='L' ? 0 : aroundNodeW);		desiredY = aroundNodePos.y + (nodeCorner.charAt(0)=='T' ? 0 : aroundNodeH);		pos = dojo.html.placeOnScreen(node, desiredX, desiredY, padding, true, corners, true);		if(pos.dist == 0){			best = pos;			break;		}else{			//not perfect, find out whether it is better than the saved one			if(bestDistance > pos.dist){				bestDistance = pos.dist;				best = pos;			}		}	}	if(!tryOnly){		node.style.left = best.left + "px";		node.style.top = best.top + "px";	}	return best;	//	object}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js