Div jolts into place when I open console/firebug - Facebook comments

Associate
Joined
15 Feb 2006
Posts
1,872
Location
hell
Hi guys


I have a very strange problem that started cropping up a few days ago (not sure if it's something I've done, or something Facebook has done).

Basically I have a div on my page and am using Javascript to populate that div with Facebook comments onload (the site is AJAX orientated meaning I need to dynamically set the URL of the Facebook comments when the page loads).

When the Facebook comments iframe loads onto the page, it loads in an awkward place, not centralised in the container div, but starting in the middle and stick out the right hand side.

When I right click and inspect element in chrome, the comments box jolts into the place.

I've also noticed that if a comment is already present in the box, the "jolt" happens automatically.

I've tried purely putting the Facebook comments box on the HTML page without any Javascript and the same problem occurs.

Does anyone have any idea why this happens and how I can stop it?

Many thanks
 
Back
Top Bottom