|
@@ -145,8 +145,9 @@ class CardContentPicVideoCollectionViewLayout: UICollectionViewLayout {
|
|
}else if cardContentPicVideoModel?.width ?? 0 == cardContentPicVideoModel?.height ?? 0 {
|
|
}else if cardContentPicVideoModel?.width ?? 0 == cardContentPicVideoModel?.height ?? 0 {
|
|
return CGRect(x: 0, y: 0, width: (kScreenWidth-28), height: (kScreenWidth-28))
|
|
return CGRect(x: 0, y: 0, width: (kScreenWidth-28), height: (kScreenWidth-28))
|
|
}else {
|
|
}else {
|
|
- cellHeight = (kScreenWidth-28)*(cardContentPicVideoModel?.height ?? 0)/(cardContentPicVideoModel?.width ?? 0)
|
|
|
|
- return CGRect(x: 0, y: 0, width: (kScreenWidth-28), height: cellHeight*3/4)
|
|
|
|
|
|
+// cellHeight = (kScreenWidth-28)*(cardContentPicVideoModel?.height ?? 0)/(cardContentPicVideoModel?.width ?? 0)
|
|
|
|
+// return CGRect(x: 0, y: 0, width: (kScreenWidth-28), height: cellHeight*3/4)
|
|
|
|
+ return CGRect(x: 0, y: 0, width: (kScreenWidth-28), height: (kScreenWidth-28))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|