Please somebody help me with this,

I have detected the source of the error but its _javascript_-related and to be honest I suck at _javascript_.

 

The error takes place in the file:  popupcalendar.js.

 

In the following lines (1324-1383):

 

    try

    {

        do {

            aTag = aTag.offsetParent;

            leftpos += aTag.offsetLeft;

            toppos += aTag.offsetTop;

        }

        while (aTag.tagName != "BODY");

    }

    catch (ex)

    {

        // ignore

    }

….

 

Somehow the elements that I have containing the img that activates the popup cause problems and the offset ends up being greater, causing the popup to appear displaced to the left and to the bottom.  

Is this a bug?  Has anyone had a similar problem?  If so how have you solved it?

 

Cheers,

Jorge Vásquez

 

 


De: Jorge Vásquez [mailto:[EMAIL PROTECTED]
Envia
do el: martes, 19 de septiembre de 2006 19:48
Para: 'MyFaces Discussion'
Asunto: Problems with Calendar popup position.

 

Regards to all,

 

The popup calendar that I am using in a form appears displaced to the right and bottom of the calendar field.  This is happening both in Firefox and Internet Explorer.  The position of the popup is apparently always the same ´cause as the calendar field appears lower in the page the popup begins to disappear.  Any ideas on how to force the popup to appear underneath the field and in the foreground?

 

Thanks in advance,

JV  

Reply via email to