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:
euzuro
2008-08-01 05:06:30 +00:00
parent 48e8a981d1
commit 558cd57e41
3 changed files with 16 additions and 25 deletions
+2 -5
View File
@@ -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;
},