<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Awesome!&nbsp; Thanks!<br>
<br>
Greg<br>
<br>
Christopher Schmidt wrote:
<blockquote cite="mid:20081012204454.GA19123@metacarta.com" type="cite">
  <pre wrap="">On Sun, Oct 12, 2008 at 01:26:12PM -0700, Greg Ederer wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

This is an interesting problem (at least, I think so).

I have placed a map inside a movable element (using dojo.dnd.Moveable) 
so that users can drag it around the browser window by grabbing a 
titlebar.  (My goal is to let the user create multiple map panes, and 
drag them around the window.)

The trouble is that when the user moves the map, and then clicks on it, 
the mouse coordinates get processed as though the map were still in its 
initial location (where it was when the page first loaded.)

For example, if the user moves the map twenty pixels to the right, and 
then clicks on it, the click is interpreted as if the the user clicked 
on whatever is twenty pixels to the right of where she clicked.

Is there some way to update the offsets of the map mouse origin when the 
user drags the map?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
map.updateSize().

Regards,
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|</pre>
</body>
</html>