Browse Source

library view: hide metadata label when orientation changing, if the cell is expended

Pierre SAGASPE 9 years ago
parent
commit
b4dc90c100
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Sources/VLCLibraryViewController.m

+ 8 - 0
Sources/VLCLibraryViewController.m

@@ -1511,6 +1511,14 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
 
     if (!_usingTableViewToShowData)
         [self.collectionView.collectionViewLayout invalidateLayout];
+    else {
+        NSArray *visibleCells = [self.tableView visibleCells];
+        NSUInteger cellCount = visibleCells.count;
+        for (NSUInteger x = 0; x < cellCount; x++) {
+            if ([visibleCells[x] isExpanded])
+                [visibleCells[x] metaDataLabel].hidden = YES;
+        }
+    }
 }
 
 #pragma mark - Search Display Controller Delegate