William Bowling is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

wbowling / adium (fork of adium / adium)

Fork of Adium for patches/improvements

Clone this repository (size: 338.7 MB): HTTPS / SSH
hg clone https://bitbucket.org/wbowling/adium
hg clone ssh://hg@bitbucket.org/wbowling/adium

adium / Source / AIStandardListScrollView.m

//
//  AIStandardListScrollView.m
//  Adium
//
//  Created by Evan Schoenberg on 1/26/08.
//

#import "AIStandardListScrollView.h"

@implementation AIStandardListScrollView

/*!
 * @brief Update after the clip view scrolls
 *
 * This is needed because our scroll view overlaps the bottom-right resize widget in the standard contact list window and has a small scroller.
 * The window draws the resize widget, which leaves behind white artifacts in the area that a large scroller would be but a small one is not.
 *
 * If we added a bar to the bottom of the standard window, this could go away.
 */
- (void)reflectScrolledClipView:(NSClipView *)aClipView
{
        [super reflectScrolledClipView:aClipView];
        
        NSRect myBounds = [self bounds];
        NSRect bottomRect = NSMakeRect(NSMaxX(myBounds) - 20, NSMinY(myBounds), 20, NSMaxY(myBounds));
        [self setNeedsDisplayInRect:bottomRect];
}

@end