Parcourir la source

直播课程组pad样式

Steven il y a 3 mois
Parent
commit
009e3fd0a3

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/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);

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/LiveCourse/View/MyLiveCourseBodyView.m

@@ -236,7 +236,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
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MinePageLiveCourse/MinePageLiveCourseView.m

@@ -258,7 +258,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);