[OpenLayers-Trac] [OpenLayers] #388: window resize messes with mouse position

OpenLayers trac at openlayers.org
Wed Mar 28 12:54:00 EDT 2007


#388: window resize messes with mouse position
----------------------+-----------------------------------------------------
  Reporter:  tschaub  |       Owner:  sderle     
      Type:  bug      |      Status:  assigned   
  Priority:  minor    |   Milestone:  2.4 Release
 Component:  general  |     Version:             
Resolution:           |    Keywords:  review     
----------------------+-----------------------------------------------------
Comment (by tschaub):

 Dragging a box on a right floated map viewport still demonstrates the
 problem (open an example with #map {float: right}, shift-drag to zoom in,
 resize page, shift-drag again to see improperly positioned zoom box.

 map.updateSize needs to nullify map.events.element.offsets every time it
 is called - not only when its size changes.

 I think the following patch is what we want.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/388#comment:9>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list