Lightbox Loads Half Way Down Page - Facebook App iFrame
We are developing a Facebook app which basically runs our website we
developed via an iFrame within the facebook page.
Inside our website we have a button which when clicked loads a jquery
lightbox (plays a video). When using the website individually (not through
facebook) the lightbox loads fine however when doing so through Facebook
the lightbox loads but does so halfway down the page (iframe) which means
you cant see and have to scroll down the page to see it.
My understanding is that the lightbox loads in "the middle" of the page
however because of Facebook app and the fact its inside an iframe, the
lightbox is calculating the middle based on the height of the iframe which
results in you not being able to see it initially as its all the way down
the page.
Looking obviously for a way to fix this. Ideally we load the lightbox at
the top of the page or we have it so it auto scrolls down to the lightbox.
The light we are using is EasyBox however not sure if that matters.
Have searched around but can't find much assistance.
Can anyone offer any advice?
No comments:
Post a Comment