I had a similar need and modified the js code to remedy. In
my scenario the calendar was popping up off the screen (too far to the right)
and I just wanted to relocate it to be right under the input
field.
Open popcalendar.js and add this global
variable:
var jscalendarRelativeX
= -150 // ALB 2005-07-05 changed so popup can
be right below field instead of off to right
Then
here is where I made use of that new variable (note it is at source code line
number 623 or so):
jscalendarCrossobj.left = jscalendarFixedX==-1 ? ctl.offsetLeft + jscalendarRelativeX + leftpos +
"px": jscalendarFixedXNote
that this is a custom modification that I didn't take the time to put into the
JSF UI component (sorry), mostly because I haven't ventured into that world
yet :-)
HTH,
Aaron
Bartell
From: Don Walters [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 30, 2005 3:15 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Cc: Don Walters
Subject: RE: x:inputCalendar popup location
Hi Martin,
That's what I thought, but figured I'd ask anyhow ;-)
I'm not yet clever enough to wander through the code and figure it out for
myself. But I will plan to take a stab at making a patch once I get a
chance.
Thanks,
Don
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 30, 2005 1:09 PM
To: MyFaces Discussion
Subject: Re: x:inputCalendar popup location
fancy doing a patch ;) ?
regards,
Martin
On 7/30/05, Don
Walters <[EMAIL PROTECTED]>
wrote:
I just switched to using the nightly build of MyFaces, and am using x:inputCalendar with renderAsPopup. It looks great, and I was happy to see that it supports the 'disabled' property perfectly (i.e. it hides the "..." button unless enabled). But because the component is in an iframe, and the control must be located on the right side of the frame, the popup is truncated.Is there any property or mechanism that will allow me to control the location of the x:inputCalendar popup? Unless I can set the offset, or set the x-coordinate to 0, I cannot use it.Thanks for your help.Don

