mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
969ff24ac7
If the current branch filter is switched to "All" or "Local" the index that's calculated as being the targeted index to scroll to visible, is off by the amount in Y that the bottom split view separator is off from a multiple of rows. -adjustScroll: on PBCommitList is called automatically whenever the list needs laying out. An ivar keeps track if we come from the -scrollSelectionToTopOfViewFrom: method of PBGitHistoryController. I'll leave the commented out NSLogs in there in case they're needed for debugging again later.
26 lines
565 B
Objective-C
26 lines
565 B
Objective-C
//
|
|
// PBCommitList.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 9/11/08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <WebKit/WebView.h>
|
|
#import "PBGitHistoryController.h"
|
|
|
|
@class PBWebHistoryController;
|
|
|
|
@interface PBCommitList : NSTableView {
|
|
IBOutlet WebView* webView;
|
|
IBOutlet PBWebHistoryController *webController;
|
|
IBOutlet PBGitHistoryController *controller;
|
|
BOOL useAdjustScroll;
|
|
NSPoint mouseDownPoint;
|
|
}
|
|
|
|
@property (readonly) NSPoint mouseDownPoint;
|
|
@property (assign) BOOL useAdjustScroll;
|
|
@end
|