adium 4315:b4a8916957f3: Fix small leap when auto-scrolling resu...
commits at adium.im
commits at adium.im
Thu Nov 24 23:35:33 UTC 2011
details: http://hg.adium.im/adium/rev/b4a8916957f3
revision: 4315:b4a8916957f3
branch: (none)
author: Patrick Steinhardt <steinhardt.p at me.com>
date: Fri Nov 25 00:35:11 2011 +0100
Fix small leap when auto-scrolling resumes in About box.
diffs (17 lines):
diff -r f1bf0c09b604 -r b4a8916957f3 Source/AIAutoScrollTextView.m
--- a/Source/AIAutoScrollTextView.m Mon Nov 21 21:13:19 2011 -0800
+++ b/Source/AIAutoScrollTextView.m Fri Nov 25 00:35:11 2011 +0100
@@ -83,8 +83,11 @@
[[self enclosingScrollView] setLineScroll:0.0f];
[[self enclosingScrollView] setPageScroll:0.0f];
- // Start scrolling
- scrollLocation = [[[self enclosingScrollView] contentView] bounds].origin.y;
+ /*
+ * Xxx Somehow there are 7 pixels missing after re-starting to scroll - add
+ * them by hand until we find the cause.
+ */
+ scrollLocation = [[[self enclosingScrollView] contentView] bounds].origin.y + 7;
maxScroll = [[self textStorage] size].height;
scrollTimer = [[NSTimer scheduledTimerWithTimeInterval:(1.0f / ABOUT_SCROLL_FPS)
More information about the commits
mailing list