File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2171,9 +2171,7 @@ - (void)choseParams {
2171
2171
#pragma mark - Table Management
2172
2172
2173
2173
- (CGFloat)getTableInsetTop {
2174
- // Workaround: -1.0 to avoid empty space between collection view's section header and navbar, which
2175
- // happens for some devices where maxY of navigation bar is not identical to getTopPaddingWithNavBar.
2176
- return IS_IPHONE ? [Utilities getTopPaddingWithNavBar:self.navigationController] - 1.0 : 0;
2174
+ return IS_IPHONE ? [Utilities getTopPaddingWithNavBar:self.navigationController] : 0;
2177
2175
}
2178
2176
2179
2177
- (void)setSearchBar:(UISearchBar*)searchBar toDark:(BOOL)isDark {
Original file line number Diff line number Diff line change @@ -1002,7 +1002,7 @@ + (CGFloat)getTopPadding {
1002
1002
}
1003
1003
1004
1004
+ (CGFloat)getTopPaddingWithNavBar : (UINavigationController*)navCtrl {
1005
- CGFloat topPadding = UIApplication. sharedApplication . statusBarFrame . size . height + navCtrl.navigationBar .frame . size . height ;
1005
+ CGFloat topPadding = CGRectGetMaxY ( navCtrl.navigationBar .frame ) ;
1006
1006
return topPadding;
1007
1007
}
1008
1008
You can’t perform that action at this time.
0 commit comments