diff --git a/modules/chat/chat.output.php b/modules/chat/chat.output.php index eb32e21..ef9e025 100644 --- a/modules/chat/chat.output.php +++ b/modules/chat/chat.output.php @@ -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()