facebook/facebook-js-sdk — pull request #3 by dgalarza (2012-06-02 19:09:26+00:00)
Title: Work around bug where webkit always reports 0 on document.documentElemen...

Webkit always reports 0 when calling document.documentElement.scrollTop which results in FB.dialogs appearing off screen if the user has scrolled down the page.

This patch resolves this issue, allowing an FB.Dialog to appear centered in the page in webkit even if the user has scrolled down.