Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 04c85a1

Browse files
author
kernel
committed
Fix scrollsToTop on Stats screen.
1 parent 22327f0 commit 04c85a1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Gitty/DARepoCtrl+Animation.m

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,8 @@ - (void)setStatsContainerMode:(DAStatsContainerModes)mode animated:(BOOL)animate
102102
self.navigationItem.rightBarButtonItem = [UIBarButtonItem.alloc initWithCustomView:self.branchesButton];
103103
}
104104

105+
self.commitsTable.scrollsToTop = !isStatsShown;
105106
_statsCtrl.commitsTable.scrollsToTop = isStatsShown;
106-
107-
/*
108-
if (isBranchOverlayVisible) {
109-
self.branchPickerCtrl.visibleTable.scrollsToTop = !isStatsShown;
110-
} else {
111-
self.commitsTable.scrollsToTop = !isStatsShown;
112-
}*/
113107
}];
114108

115109
NSString *name = DAStatsCtrl.className;

0 commit comments

Comments
 (0)