瀏覽代碼

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