AUTO_SCROLL not always working with IE
--------------------------------------
Key: MYFACES-1007
URL: http://issues.apache.org/jira/browse/MYFACES-1007
Project: MyFaces
Type: Improvement
Components: Implementation
Versions: 1.1.1
Environment: Windows XP Tomcat 5.5 et IE 6 sp2
Reporter: Antoine Sabot-Durand
Priority: Minor
In some case the autoscroll feature doesn't work in Internet explorer 6.
Especially when the rendered HTML contains a lot of div.
This is due to a bug in Internet Explorer.
The solution I found is to modify the renderAutoScrollFunction method in
org.apache.myfaces.renderkit.html.util class.
I changed the following line :
script.append("window.scrollTo(").append(x).append(",").append(y).append(");\n");
to
script.append("setTimeout('window.scrollTo(").append(x).append(",").append(y).append(")',1);\n");
The setTimeout let IE finish whatever it has to to get a right layout of the
HTML elements on the page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira