Explorar o código

fix the first display of library with the search bar hidden on iPad

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE %!s(int64=10) %!d(string=hai) anos
pai
achega
91d56370bc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Sources/VLCPlaylistViewController.m

+ 3 - 0
Sources/VLCPlaylistViewController.m

@@ -228,6 +228,9 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
     _searchBar.delegate = self;
     _searchBar.hidden = YES;
 
+    if (!_usingTableViewToShowData)
+        _collectionView.contentInset = UIEdgeInsetsMake(-[VLCLibraryHeaderView headerHeight], 0, 0, 0);
+
     UITapGestureRecognizer *tapTwiceGesture = [[UITapGestureRecognizer alloc] initWithTarget:self  action:@selector(tapTwiceGestureAction:)];
     [tapTwiceGesture setNumberOfTapsRequired:2];
     [self.navigationController.navigationBar addGestureRecognizer:tapTwiceGesture];