In openid_selector_drupal.js there's a line of code which reads:
$('#edit-name').focus();
it gets called on page load, and sets the input focus to the username field (I have "OpenID Selector for Drupal login" enabled, dunno if it gets called otherwise).
This is probably the right thing to do on the login page, but when it's called in other pages with a login block it makes the page scroll on load to a position where the #edit-name field is visible.
If you're dealing with certain layouts (e.g. login form on bottom-right), small screens and sites which are meant to be used by anonymous users as well this can be a problem.
I was lazy and fixed my site by changing it to
$('#content #edit-name').focus();
this probably isn't the ideal solution, but I think it's an improvement over the current situation, so if you don't have time to find a better one maybe you'd like to do the same.
Cheers, and thanks for the module - I couldn't use OpenID without it.
Comments
Comment #1
poiu commentedHmm, seems like my $('#content #edit-name') hack only works when the default drupal login is selected, otherwise the focus gets set by openid.useInputBox. So it definitely isn't the ideal solution.
Comment #2
andriy_gerasika commentedfixed in http://drupal.org/cvs?commit=462944
Comment #3
andriy_gerasika commentedfix is available in just released v1.4