sv1cec
07-16-2008, 07:22 AM
OK folks, this is weird.
Background info:
vB : 3.0.latestwhatever
Browser: Firefox 2.latestwhatever.
When you enter a new message using the QuickReply box, the thread is shown so that the new message appears at the top of the browser window, after you submit the message.
After upgrading to Firefox 3.0, the thread window is positioned differently. When you submit the new reply, the new post is shown so that the bar on the top of the new post is at the very bottom of the browser window, so you need to scroll down to read the message.
I tried Firefox 3.0 with this board and with other boards running vB 3.5 and newer and it behaves differently. In other words, the newly posted message is shown in the middle of the browser window instead of either the top or the bottom.
I am very confused. Can someone please tell me what defines the position of the thread window, in relation to the just posted message? I have to assume that it is a java script, but which one? And how can I affect the position of the window in relation to the newly posted message? I don't have any experience with java, so any help would be appreciated.
--------------- Added 1216201973 at 1216201973 ---------------
Ah, never mind, I found it. It was in functions_showthread, where there was a line:
$onload = "if (is_ie || is_moz) { fetch_object('currentPost').scrollIntoView(!is_moz ); }";
After I changed that to:
$onload = "if (is_ie || is_moz) { fetch_object('currentPost').scrollIntoView(true); }";
everything is back to normal.
Thanks for viewing.
Background info:
vB : 3.0.latestwhatever
Browser: Firefox 2.latestwhatever.
When you enter a new message using the QuickReply box, the thread is shown so that the new message appears at the top of the browser window, after you submit the message.
After upgrading to Firefox 3.0, the thread window is positioned differently. When you submit the new reply, the new post is shown so that the bar on the top of the new post is at the very bottom of the browser window, so you need to scroll down to read the message.
I tried Firefox 3.0 with this board and with other boards running vB 3.5 and newer and it behaves differently. In other words, the newly posted message is shown in the middle of the browser window instead of either the top or the bottom.
I am very confused. Can someone please tell me what defines the position of the thread window, in relation to the just posted message? I have to assume that it is a java script, but which one? And how can I affect the position of the window in relation to the newly posted message? I don't have any experience with java, so any help would be appreciated.
--------------- Added 1216201973 at 1216201973 ---------------
Ah, never mind, I found it. It was in functions_showthread, where there was a line:
$onload = "if (is_ie || is_moz) { fetch_object('currentPost').scrollIntoView(!is_moz ); }";
After I changed that to:
$onload = "if (is_ie || is_moz) { fetch_object('currentPost').scrollIntoView(true); }";
everything is back to normal.
Thanks for viewing.