adium/adium

Parents 42ac04602c4f
Children 6831bfdfb7ed
Fixed message view content not scrolled to bottom when opening and not scrolling when new content is added.
--- 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).
--- 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];