backing out patch for r7647 as it breaks framedcloud popups. (See #1586)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7656 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -164,15 +164,12 @@ OpenLayers.Popup.Anchored =
|
||||
*/
|
||||
calculateNewPx:function(px) {
|
||||
var newPx = px.offset(this.anchor.offset);
|
||||
|
||||
//use contentSize if size is not already set
|
||||
var size = this.size || this.contentSize;
|
||||
|
||||
var top = (this.relativePosition.charAt(0) == 't');
|
||||
newPx.y += (top) ? -size.h : this.anchor.size.h;
|
||||
newPx.y += (top) ? -this.size.h : this.anchor.size.h;
|
||||
|
||||
var left = (this.relativePosition.charAt(1) == 'l');
|
||||
newPx.x += (left) ? -size.w : this.anchor.size.w;
|
||||
newPx.x += (left) ? -this.size.w : this.anchor.size.w;
|
||||
|
||||
return newPx;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user