You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jorge Vásquez <jv...@3eyegroup.com> on 2006/09/20 02:47:33 UTC

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  


RE: Problems with Calendar popup position.

Posted by Martin Kuhn <ma...@gmx.at>.
 

Hi,

I have the same problem with calendar positioning (with MyFaces Core 1.1.4
and Tomahawk, 1.1.5 Snapshot)

 

BTW, with MyFaces 1.1.1 positioning worked perfectly

 

Regards

Martin 

 

  _____  

Von: Jorge Vásquez [mailto:jv@3eyegroup.com] 
Gesendet: Mittwoch, 20. September 2006 02:48
An: 'MyFaces Discussion'
Betreff: 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  


RE: Problems with Calendar popup position.

Posted by Jorge Vásquez <jv...@3eyegroup.com>.
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:jv@3eyegroup.com] 
Enviado 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