- Joe --
This example should help:
Basically, wrap the Calendar in an Overlay Control.
Hope that helps :)
blog.davglass.com+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
McDonalds Certified Food Specialist is to fine cuisine +----- Original Message ----
From: aokjoey <joe@...>
Sent: Thursday, November 1, 2007 8:43:02 AM
Title says it all: I want to position the calender in the center of
the viewport regardless of the page's scroll position.
Any pointers are appreciated, the API isn't obvious about this.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
- Joe,The YUI Panel Control (and others in the Container Family) have a "fixedcenter" configuration property. Your best bet here is to create your calendar inside a Panel and set the fixedcenter configuration to true (it's false by default).Here's an example of that:On Nov 1, 2007, at 8:43 AM, aokjoey wrote:
- On a similar note, are there any examples of having the calendar
intelligently position itself so that it doesn't appear off-screen?
For instance, if I have a calendar icon positioned on the right side
of the page, clicking it might make the calendar appear off to the
right, making the viewport expand to accommodate it. I'm looking for
something reuseable so that the same calendar code can be used on any
page, regardless of where the icon is.
On 11/1/07, Eric Miraglia <miraglia@...> wrote:
> The YUI Panel Control (and others in the Container Family) have a "fixedcenter" configuration property. Your best bet here is to create your calendar inside a Panel and set the fixedcenter configuration to true (it's false by default).
> Here's an example of that:
> Eric Miraglia
> Yahoo! User Interface Library
> On Nov 1, 2007, at 8:43 AM, aokjoey wrote:
> Title says it all: I want to position the calender in the center of
> the viewport regardless of the page's scroll position.
> Any pointers are appreciated, the API isn't obvious about this.
- Tim,The version I linked to below will take care of that for you. Just delete the fixedcenter configuration and add a constraintoviewport configuration (set to true) for the Panel instance in which the Calendar instance lives.You can then use the context element positioning featured in Panel to position the panel exactly where you want it relative to a context element but intelligently move it back into the viewport if the default position has it clipped.Regards,EricOn Nov 1, 2007, at 11:01 AM, Timothy Lynn wrote: