| Page 1 of 1 | [ 2 posts ] |
|
Hi
I am having trouble when trying to centre an overlay initally upon a page. The behaviour I am seeing is that on the initial show the top of the overlay is aligned to the centre of the viewport. However if the content in the overlay has a big height then it runs off screen. If I then hide and show the overlay without a refresh then the overlay is correctly centred on the page. code snippet I am using is: //method to set overlay content Code: setContent(); overlay.render(); //show overlay overlay.show(); overlay.set("centered", true); overlay.set("constrain", true); Is there something I am missing here? Thanks in advance |
|
Call `overlay.align()` at the end here and it will sync up the alignment correctly.
|
| Page 1 of 1 | [ 2 posts ] |
| 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 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group