adium 4705:a8725815a3d7: Fixed message view content not scrolled...

commits at adium.im commits at adium.im
Tue Feb 28 20:49:16 UTC 2012


details:	http://hg.adium.im/adium/rev/a8725815a3d7
revision:	4705:a8725815a3d7
branch:		(none)
author:		Adrian Godoroja <robotive at me.com>
date:		Tue Feb 28 22:49:09 2012 +0200

Fixed message view content not scrolled to bottom when opening and not scrolling when new content is added.

diffs (32 lines):

diff -r 42ac04602c4f -r a8725815a3d7 ChangeLogs/Changes Between Betas.txt
--- a/ChangeLogs/Changes Between Betas.txt	Sun Feb 26 23:29:38 2012 +0100
+++ b/ChangeLogs/Changes Between Betas.txt	Tue Feb 28 22:49:09 2012 +0200
@@ -2,6 +2,7 @@
  General
   * Can't change XMPP room settings for combo box settings (#15629).
   * Fixed deletion of a Gadu-Gadu contact from contact list not being persistent (#9126).
+  * Fixed message view content not scrolled to bottom when opening and not scrolling when new content is added.
 
  Localisation
   * Updated localisations: Swedish (#15786).
diff -r 42ac04602c4f -r a8725815a3d7 Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sun Feb 26 23:29:38 2012 +0100
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Tue Feb 28 22:49:09 2012 +0200
@@ -637,7 +637,7 @@
 - (NSString *)scriptForScrollingAfterAddingMultipleContentObjects
 {
 	if ((styleVersion >= 3) || !usingCustomTemplateHTML) {
-		return @"alignChat(nearBottom());";
+		return @"if (this.AI_viewScrolledOnLoad != undefined) {alignChat(nearBottom());} else {this.AI_viewScrolledOnLoad = true; alignChat(true);}";
 	}
 
 	return nil;
@@ -648,7 +648,7 @@
  */
 - (NSMutableString *)_escapeStringForPassingToScript:(NSMutableString *)inString
 {	
-	//We need to escape a few things to get our string to the javascript without trouble
+	// We need to escape a few things to get our string to the javascript without trouble
 	[inString replaceOccurrencesOfString:@"\\" 
 							  withString:@"\\\\" 
 								 options:NSLiteralSearch];




More information about the commits mailing list