Scroll issue

This commit is contained in:
genuineparts 2025-06-26 14:44:38 +02:00
parent 0637c14b23
commit 7050ecaf56

View file

@ -595,7 +595,7 @@ function inmeta2(){
window.onbeforeunload = null; window.onbeforeunload = null;
if(as!=false){ if(as!=false){
var target = $('#chatlog'); var target = $('#chatlog');
target.animate({ scrollTop: target.height()}, 500 ); target.animate({ scrollTop: target.scrollHeight}, 500 );
} }
} }
socket.onclose = function(){ socket.onclose = function(){
@ -604,7 +604,7 @@ function inmeta2(){
window.onbeforeunload = null; window.onbeforeunload = null;
if(as!=false){ if(as!=false){
var target = $('#chatlog'); var target = $('#chatlog');
target.animate({ scrollTop: target.height()}, 500 ); target.animate({ scrollTop: target.scrollHeight}, 500 );
} }
} }
@ -613,7 +613,7 @@ function inmeta2(){
window.onbeforeunload = null; window.onbeforeunload = null;
if(as!=false){ if(as!=false){
var target = $('#chatlog'); var target = $('#chatlog');
target.animate({ scrollTop: target.height()}, 500 ); target.animate({ scrollTop: target.scrollHeight}, 500 );
} }
console.log(exception); console.log(exception);
} }
@ -814,7 +814,7 @@ function inmeta2(){
$('#'+whispt[1]+'_whisper').dialog('open'); $('#'+whispt[1]+'_whisper').dialog('open');
$('#'+whispt[1]+'_whisper').dialog('moveToTop'); $('#'+whispt[1]+'_whisper').dialog('moveToTop');
var wtarget = $('#'+whisp[1]+'_whisper_text'); var wtarget = $('#'+whisp[1]+'_whisper_text');
$('#'+whisp[1]+'_whisper_text').animate({ scrollTop: wtarget.height()}, 500 ); $('#'+whisp[1]+'_whisper_text').animate({ scrollTop: wtarget.scrollHeight}, 500 );
}else{ }else{
create_whisper(whispt[1],whispt[2],true); create_whisper(whispt[1],whispt[2],true);
} }
@ -826,7 +826,7 @@ function inmeta2(){
$('#'+whisp[1]+'_whisper').dialog('open'); $('#'+whisp[1]+'_whisper').dialog('open');
$('#'+whisp[1]+'_whisper').dialog('moveToTop'); $('#'+whisp[1]+'_whisper').dialog('moveToTop');
var wtarget = $('#'+whisp[1]+'_whisper_text'); var wtarget = $('#'+whisp[1]+'_whisper_text');
$('#'+whisp[1]+'_whisper_text').animate({ scrollTop: wtarget.height()}, 500 ); $('#'+whisp[1]+'_whisper_text').animate({ scrollTop: wtarget.scrollHeight}, 500 );
}else{ }else{
create_whisper(whisp[1],whisp[2]); create_whisper(whisp[1],whisp[2]);
} }
@ -843,7 +843,7 @@ function inmeta2(){
$('#chatlog').append(msg); $('#chatlog').append(msg);
if(as!=false){ if(as!=false){
var target = $('#chatlog'); var target = $('#chatlog');
target.animate({ scrollTop: target.height()}, 500 ); target.animate({ scrollTop: target.scrollHeight}, 500 );
} }
}//End message() }//End message()