mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Merge branch 'fix_interspacing'
* fix_interspacing: Remove cell size adjustment Remove the horizontal spacing between the rows in the commit list tableview.
This commit is contained in:
+892
-895
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,7 @@
|
||||
IBOutlet NSTreeController* treeController;
|
||||
IBOutlet NSOutlineView* fileBrowser;
|
||||
IBOutlet NSSearchField* searchField;
|
||||
IBOutlet NSTableView* commitList;
|
||||
|
||||
int selectedTab;
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
self.selectedTab = [[NSUserDefaults standardUserDefaults] integerForKey:@"Repository Window Selected Tab Index"];;
|
||||
[commitController addObserver:self forKeyPath:@"selection" options:(NSKeyValueObservingOptionNew,NSKeyValueObservingOptionOld) context:@"commitChange"];
|
||||
[treeController addObserver:self forKeyPath:@"selection" options:0 context:@"treeChange"];
|
||||
NSSize cellSpacing = [commitList intercellSpacing];
|
||||
cellSpacing.height = 0;
|
||||
[commitList setIntercellSpacing:cellSpacing];
|
||||
}
|
||||
|
||||
- (void) updateKeys
|
||||
|
||||
@@ -87,11 +87,6 @@
|
||||
NSRect ownRect;
|
||||
NSDivideRect(rect, &ownRect, &rect, pathWidth, NSMinXEdge);
|
||||
|
||||
// Adjust by removing the border
|
||||
ownRect.size.height += 2;
|
||||
ownRect.origin.y -= 1;
|
||||
ownRect.origin.x += 0;
|
||||
|
||||
for (PBLine* line in cellInfo.lines) {
|
||||
if (line.upper == 0)
|
||||
[self drawLineFromColumn: line.from toColumn: line.to inRect:ownRect offset: ownRect.size.height];
|
||||
|
||||
Reference in New Issue
Block a user