Commit b4dc90c1 authored by Pierre SAGASPE's avatar Pierre SAGASPE

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

parent 7b68b27f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment