Patch from Erik/I to fix:
Popups don't move adequately after zooming with scroll wheel (Closes #494) git-svn-id: http://svn.openlayers.org/trunk/openlayers@4250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -91,11 +91,15 @@ OpenLayers.Popup.Anchored =
|
||||
|
||||
/**
|
||||
* Method: moveTo
|
||||
* Since the popup is moving to a new px, it might need also to be moved
|
||||
* relative to where the marker is.
|
||||
*
|
||||
* Parameters:
|
||||
* px - {<OpenLayers.Pixel>}
|
||||
*/
|
||||
moveTo: function(px) {
|
||||
this.relativePosition = this.calculateRelativePosition(px);
|
||||
|
||||
var newPx = this.calculateNewPx(px);
|
||||
|
||||
var newArguments = new Array(newPx);
|
||||
|
||||
Reference in New Issue
Block a user