Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook javascript sdk UI dialog resetting scroll position

i have a long page, where near the bottom I have a "post on facebook" button. when the user clicks this the FB.UI dialog from the facebook javascript sdk pops-up. This is all working fine except that the page scrolls back to the top of the page where the dialog is showing. i have the set just under the tag as facebook recommends. I've tried moving this to the part of the page where i need it but the page keeps scrolling back to the top

Any idea how i can get the facbook dialog to show where the current page scroll position is?

like image 364
MakkyNZ Avatar asked Feb 21 '12 10:02

MakkyNZ


1 Answers

You'll want to use the position:fixed; attribute within the element that contains the Facebook dialogue. Check out this link for further information and examples.

like image 193
zillaofthegods Avatar answered Nov 15 '22 05:11

zillaofthegods