Using JavaScript I'm trying to get the position of a cell relative to the container holding the graph not the graph itself. Or at the very least the x and y values of the graph at the top left corner of the container so I can do the math. The graph has no defined dimensions and can pan forever. So when the graph pans the position values I'm looking for should change. I've tried:
None of these have yeilded any results. 
All children are relative by default, here is an example:
The problem is I'm getting points relative to the origin of the graph not the top left corner of the container. The graph is infinite so there is no guarantee cells will be in the bottom right quadrant. How can I get a cells position relative to the graphs container?
(24 Aug '11, 05:13)
rrogers

I finally figured it out:
Hi, I tried the same above code for offsetLeft and offsetTop, its not working. Is there any other changes to be done for the same code. Even i also tried
(10 May '12, 06:37)
hansie

I'm not sure what exactly it is you need, but you can get the following numbers: var state = graph.view.getState(graph.getSelectionCell()); state.x/y => Absolute coordinates of the shape (scaled and translated) var origin = mxUtils.getOffset(graph.container); origin.x/y => Absolute coordinates of the graph container (top, left corner) graph.container.scrollLeft/Top: Position of the scrollbars in the graph container BTW: The above solution using offsetLeft/Top on the shape's node will only work in VML/HTML, but not in SVG. answered 14 May '12, 05:44 Gaudenz 
Thanks Gaudenz for the reply, actually i found some other solution by using bounds width, and interestingly i was successful what i was expecting...Now from this i am getting the full scrollbar to the entire graph also. But the problem i am facing now is from outline container graph, when i move the picture to the desired one in outline graph, scrollbar is not affecting as that is relative to container, but what i have done is for body now and not the container... Can u suggest any ideas for this... Thanks in advance answered 14 May '12, 06:22 hansie 