Event to notify when map has moved positioned within browser... does one exist??

I am using the ArgGIS Javascript API v3.5. I have a map displayed in my browser, but it does not take up the full page. One of the things I have is to place a map marker where the user clicks on the map. All is good there. But, if the user does something that moves the map's position within the browser window, say by scrolling or by moving a splitter, the map marker is displayed in a different place than where the mouse click took place. I believe this is because the screen to coordinate mapping got out of sync when the map was repositioned. I saw that there is a map event called onReposition but that is not getting triggered during the cases I mentioned. I need to find an event that will get triggered so that I can call something like resize() (or something else) to get the screen to coordinate mapping back into sync.

Does anyone know if a map event exists that will help me or do I need to deal with events outside of the map to track when to call a map.resize()??

Tim - Thanks for the response. The onExtentChange does not help because the extent itself is not changed. This is not a zoom or a pan. This is simply when the map is shifted to a different location within the browser window. The extent (boundary coordinates) are unchanged. Yes, I am adding my markers as graphics to the graphics layer. Some years ago I was working with the OpenLayers javascript mapping API and had this same type of issue. I found that when the map is loaded, there is some mapping that maps the X/Y location of the map within the browser to actual coordinates on the map. If the map moves (thus the map has a new X/Y location in the browser) the mapping is thrown off. The distance between where you click on the map and where the map marker is displayed is the same as how far the map was shifted within the browser. There just doesn't seem to be a map event that gets triggered when this happens. I though the onReposition would be the one, but it doesn't get triggered.

Jeff - Not sure if my explanation was confusing. I am not talking about a map marker (graphic) ALREADY being on the map and then when the map gets shifted the map marker is displayed at a different location. That is not the problem I am encountering (you are correct in that the marker will always stay displayed at the location it was added). The issue is if the map gets shifted and then I click on the map to add my marker (the intent is to display the marker where I clicked on the map), the marker gets added to a location just outside of where I clicked the map (the distance depends on how far the map has shifted).

So, for example, when the page first loads and I click the map, a marker is displayed at the point where I clicked the map. If I then do something that makes the map shift its location within the browser (say by moving the scroll bar if one exists), and then click the map, my map marker is displayed at some point NEAR where I clicked but not at the point that I clicked on.

Thanks for the reply. I tried to add the example code to jsfiddle but for whatever reason it didn't load the ArcGIS Javascript API file, so the map was not loaded. The full code is not that much so I will paste it to this reply. This will show the problem. The 3 steps will be listed on the page.

Rene - Great, thanks for the reply and testing it. I am glad you were able to see what my original problem is. My post was to see if anyone knew of a map event that would be triggered during this type of situation (ie, the map being repositioned within the browser). I was hoping that there was an event but wanted to verify via this posting that an event either did or did not exist. If one did not exist, that is fine. I will just have to track the event via other non-map items and do the MAP_OBJ.resize() (like you did). It would just be easier if there was a map event.

I did some digging around on how to capture when a dom element has been repositioned and there doesn't seem to be an easy way to do it. I tried listeneng for "scroll", which I thought might do it, but no luck.

Maybe if you have the map in a container, you can listen for that containers resize event.