Author: amarkhel
Date: 2009-06-19 15:55:44 -0400 (Fri, 19 Jun 2009)
New Revision: 14665
Modified:
branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
Modified:
branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
---
branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2009-06-19
19:24:39 UTC (rev 14664)
+++
branches/community/3.3.X/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2009-06-19
19:55:44 UTC (rev 14665)
@@ -480,8 +480,8 @@
var horizontalDirection = match[2];
var verticalDirection = match[1];
- var clientX = isNaN(e.clientX) ? Element.cumulativeOffset(this.parent).left +
this.toolTip.horizontalOffset : e.clientX;
- var clientY = isNaN(e.clientY) ? Element.cumulativeOffset(this.parent).top +
this.toolTip.verticalOffset : e.clientY;
+ var clientX = isNaN(e.clientX) ? Element.cumulativeOffset(this.parent).left +
this.horizontalOffset : e.clientX;
+ var clientY = isNaN(e.clientY) ? Element.cumulativeOffset(this.parent).top +
this.verticalOffset : e.clientY;
var coords = this.fitToolTip(clientX, clientY, elementDim, horizontalDirection,
verticalDirection,
{'x':this.horizontalOffset, 'y':this.verticalOffset});
@@ -489,8 +489,8 @@
var x;
var y;
if(isNaN(event.clientX)){
- x = coords.x - offsets.left + oldLeft + this.toolTip.horizontalOffset;
- y = coords.y - offsets.top + oldTop + this.toolTip.verticalOffset;
+ x = coords.x - offsets.left + oldLeft + this.horizontalOffset;
+ y = coords.y - offsets.top + oldTop + this.verticalOffset;
}else{
x = coords.x - offsets.left + (event.pageX - event.clientX) + oldLeft;
y = coords.y - offsets.top + (event.pageY - event.clientY) + oldTop;
Show replies by date