You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Gary Orth (JIRA)" <ta...@jakarta.apache.org> on 2005/01/15 23:02:21 UTC
[jira] Commented: (TAPESTRY-222) IE Error in DataPicker.js
[ http://issues.apache.org/jira/browse/TAPESTRY-222?page=comments#action_57663 ]
Gary Orth commented on TAPESTRY-222:
------------------------------------
I had the same issue and it was the result of using absolute/relative positioning with DIV tags. I resolved it by changing the while condition in DatePicker.js.
function getPoint(aTag)
{
var oTmp = aTag;
var point = new Point(0,0);
do
{
point.x += oTmp.offsetLeft;
point.y += oTmp.offsetTop;
oTmp = oTmp.offsetParent;
}
while (oTmp.tagName != "BODY" && oTmp.tagName != "HTML");
return point;
}
> IE Error in DataPicker.js
> -------------------------
>
> Key: TAPESTRY-222
> URL: http://issues.apache.org/jira/browse/TAPESTRY-222
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 3.0.1
> Environment: IE 6.0 SP2, Windows XP, Tapestry 3.0.1, XHTML Transitional
> Reporter: Matt Raible
> Priority: Minor
>
> For some reason, the date picker throws an exception in IE in my app. Works fine in Firefox. I patched DatePicker.js by adding a try/catch block around the following code and it fixed the problem for me (and the calendar works). Just FYI, I had to add this same patch to MyFaces popup calendar component too.
> try {
> do {
> aTag = aTag.offsetParent;
> leftpos += aTag.offsetLeft;
> toppos += aTag.offsetTop;
> } while(aTag.tagName!="BODY");
> } catch (ex) {
> // ignore
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org