[fusion-commits] r2336 - branches/fusion-2.2/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Feb 7 14:40:35 EST 2011
Author: madair
Date: 2011-02-07 11:40:35 -0800 (Mon, 07 Feb 2011)
New Revision: 2336
Modified:
branches/fusion-2.2/widgets/Maptip.js
Log:
re #433: patch applied to the 2.2 branch
Modified: branches/fusion-2.2/widgets/Maptip.js
===================================================================
--- branches/fusion-2.2/widgets/Maptip.js 2011-02-07 19:03:14 UTC (rev 2335)
+++ branches/fusion-2.2/widgets/Maptip.js 2011-02-07 19:40:35 UTC (rev 2336)
@@ -151,7 +151,7 @@
var map = this.getMap();
this.mapSize = map.getSize();
- this.mapOffset = map._oDomObj.offsets;
+ this.mapOffset = map._oDomObj.getOffsets();
var p = map.getEventPosition(e);
if (p.x == this.oCurrentPosition.x && p.y == this.oCurrentPosition.y ) {
@@ -258,7 +258,7 @@
if (!empty) {
var size = $(this.domObj).getBorderBoxSize();
- this.oMapTipPosition = this.oMapTipPosition.add(this.mapOffset[0], this.mapOffset[1]);
+ this.oMapTipPosition = this.oMapTipPosition.add(this.mapOffset.x, this.mapOffset.y);
if (this.oCurrentPosition.x < this.mapSize.w/2) {
this.domObj.style.left = (this.oMapTipPosition.x + this.offset.x) + 'px';
} else {
More information about the fusion-commits
mailing list