Browse Source

直播课程组pad样式

Steven 7 tháng trước cách đây
mục cha
commit
cff61b3bc9

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Module/Home/ArrangeCourse/View/HomeArrangeLiveCourseView.m

@@ -199,7 +199,7 @@
 - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
     CGFloat width = KPortraitWidth - 28;
     if (IS_IPAD) {
-        width = (KPortraitWidth - 28 - 12 * 2 - 12) / 2.0f;
+        width = (KPortraitWidth - 28 - 12) / 2.0f;
     }
     CGFloat height = (width - 12 * 2) / 16 * 9 + 143;
     return CGSizeMake(width, height);

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Module/Mine/MineCourse/View/LiveCourseGroup/MyLiveCourseGroupView.m

@@ -208,7 +208,7 @@
 - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
     CGFloat width = KPortraitWidth - 28;
     if (IS_IPAD) {
-        width = (KPortraitWidth - 28 - 12 * 2 - 12) / 2.0f;
+        width = (KPortraitWidth - 28 - 12) / 2.0f;
     }
     CGFloat height = (width - 12 * 2) / 16 * 9 + 143;
     return CGSizeMake(width, height);