function(container, x, y)
	{
		var origin = mxUtils.getScrollOrigin(container, false);
		var offset = mxUtils.getOffset(container);

		offset.x -= origin.x;
		offset.y -= origin.y;
		
		return new mxPoint(x - offset.x, y - offset.y);
	}
function(container, x, y)
	{
		var origin = mxUtils.getScrollOrigin(container, false);
		var offset = mxUtils.getOffset(container);

		offset.x -= origin.x;
		offset.y -= origin.y;
		
		return new mxPoint(x - offset.x, y - offset.y);
	}
function ( container , x , y ) { var origin = mxUtils . getScrollOrigin ( container , false ) ; var offset = mxUtils . getOffset ( container ) ; offset . x -= origin . x ; offset . y -= origin . y ; return new mxPoint ( x - offset . x , y - offset . y ) ; }
Function: convertPoint

Converts the specified point (x, y) using the offset of the specified
container and returns a new <mxPoint> with the result.

(code)
var pt = mxUtils.convertPoint(graph.container,
mxEvent.getClientX(evt), mxEvent.getClientY(evt));
(end)

Parameters:

container - DOM node to use for the offset.
x - X-coordinate of the point to be converted.
y - Y-coordinate of the point to be converted.
Function : convertPoint
Returns the absolute position of the container