Scroll issue
This commit is contained in:
parent
0637c14b23
commit
7050ecaf56
1 changed files with 6 additions and 6 deletions
|
@ -595,7 +595,7 @@ function inmeta2(){
|
|||
window.onbeforeunload = null;
|
||||
if(as!=false){
|
||||
var target = $('#chatlog');
|
||||
target.animate({ scrollTop: target.height()}, 500 );
|
||||
target.animate({ scrollTop: target.scrollHeight}, 500 );
|
||||
}
|
||||
}
|
||||
socket.onclose = function(){
|
||||
|
@ -604,7 +604,7 @@ function inmeta2(){
|
|||
window.onbeforeunload = null;
|
||||
if(as!=false){
|
||||
var target = $('#chatlog');
|
||||
target.animate({ scrollTop: target.height()}, 500 );
|
||||
target.animate({ scrollTop: target.scrollHeight}, 500 );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -613,7 +613,7 @@ function inmeta2(){
|
|||
window.onbeforeunload = null;
|
||||
if(as!=false){
|
||||
var target = $('#chatlog');
|
||||
target.animate({ scrollTop: target.height()}, 500 );
|
||||
target.animate({ scrollTop: target.scrollHeight}, 500 );
|
||||
}
|
||||
console.log(exception);
|
||||
}
|
||||
|
@ -814,7 +814,7 @@ function inmeta2(){
|
|||
$('#'+whispt[1]+'_whisper').dialog('open');
|
||||
$('#'+whispt[1]+'_whisper').dialog('moveToTop');
|
||||
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{
|
||||
create_whisper(whispt[1],whispt[2],true);
|
||||
}
|
||||
|
@ -826,7 +826,7 @@ function inmeta2(){
|
|||
$('#'+whisp[1]+'_whisper').dialog('open');
|
||||
$('#'+whisp[1]+'_whisper').dialog('moveToTop');
|
||||
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{
|
||||
create_whisper(whisp[1],whisp[2]);
|
||||
}
|
||||
|
@ -843,7 +843,7 @@ function inmeta2(){
|
|||
$('#chatlog').append(msg);
|
||||
if(as!=false){
|
||||
var target = $('#chatlog');
|
||||
target.animate({ scrollTop: target.height()}, 500 );
|
||||
target.animate({ scrollTop: target.scrollHeight}, 500 );
|
||||
}
|
||||
}//End message()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue