Skip to content

Commit f353469

Browse files
committed
Implement workaround for potential visual glitch
1 parent 8e959e6 commit f353469

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

XBMC Remote/DetailViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,9 @@ - (void)choseParams {
21712171
#pragma mark - Table Management
21722172

21732173
- (CGFloat)getTableInsetTop {
2174-
return IS_IPHONE ? [Utilities getTopPaddingWithNavBar:self.navigationController] : 0;
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;
21752177
}
21762178

21772179
- (void)setSearchBar:(UISearchBar*)searchBar toDark:(BOOL)isDark {

0 commit comments

Comments
 (0)