Преглед на файлове

Library: invalidate collection view layout when view will appear (closes #10061)

Felix Paul Kühne преди 11 години
родител
ревизия
7de5ebf111
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Sources/VLCPlaylistViewController.m

+ 2 - 1
Sources/VLCPlaylistViewController.m

@@ -233,7 +233,8 @@
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
         _tableView.separatorStyle = (_foundMedia.count > 0)? UITableViewCellSeparatorStyleSingleLine:
                                                              UITableViewCellSeparatorStyleNone;
-    }
+    } else
+        [self.collectionView.collectionViewLayout invalidateLayout];
 }
 
 - (void)libraryUpgradeComplete