Index: modules/overlay/overlay-parent.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay-parent.js,v
retrieving revision 1.12
diff -u -r1.12 overlay-parent.js
--- modules/overlay/overlay-parent.js	6 Jan 2010 04:03:39 -0000	1.12
+++ modules/overlay/overlay-parent.js	6 Jan 2010 10:55:37 -0000
@@ -280,6 +280,9 @@
   // No need to resize when loading.
   clearTimeout(self.resizeTimeoutID);
 
+  // Reset the scroll to the top of the window so that the overlay is visible again.
+  window.scrollTo(0, 0);
+  
   // Change the overlay title.
   self.$container.dialog('option', 'title', Drupal.t('Loading...'));
 
@@ -394,9 +397,6 @@
   $(document).unbind('mousedown.dialog-overlay click.dialog-overlay');
   $('.ui-widget-overlay').bind('mousedown.dialog-overlay click.dialog-overlay', function (){return false;});
 
-  // Reset the scroll to the top of the window so that the overlay is visible again.
-  window.scrollTo(0, 0);
-
   var iframeTitle = self.$iframeDocument.attr('title');
 
   // Update the dialog title with the child window title.
