[ 2 posts ]

Alex

  • Username: hame22
  • Joined: Fri Mar 23, 2012 7:23 am
  • Posts: 1
  • Offline
  • Profile

Overlay and fixedcenter

Post Posted: Fri Mar 23, 2012 7:28 am
+0-
Hi

I am trying to use overlay and would like to fix its position to the centre of the screen including when the window is scrolled and resized.

With yui2 I seen the fixedcenter property but cannot see an example of this in yui3, is it available or are there alternates?

Thanks in advance

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile

Re: Overlay and fixedcenter

Post Posted: Fri Mar 23, 2012 11:33 am
+0-
Alex,

This can be accomplished through the `alignOn` attribute. Here's a working example using Y.Panel (which includes all of the features of Overlay, plus more):

http://jsfiddle.net/ericf/T4tMW/
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum