jsonwang 3 سال پیش
والد
کامیت
a4d4456fe3
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      MusicVideoPlus/Classes/Modules/Home/Views/MVBannerCell.swift

+ 4 - 3
MusicVideoPlus/Classes/Modules/Home/Views/MVBannerCell.swift

@@ -160,8 +160,6 @@ class MVBannerCell: UICollectionViewCell {
         typeLab.text = "\(videoData?.categoryName ?? "")"
         BFLog(message: "videoDatavideoData \(String(describing: videoData?.title))")
         
-        titleLabel.font = UIFont.systemFont(ofSize: 16, weight: .bold)
-        
         let boundingRect : CGRect = (videoData?.title?.boundingRect(with: CGSize(width: 200, height: 0), options: .usesLineFragmentOrigin, attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 16, weight: .bold)], context: nil)) ?? CGRect.init()
         
         titleLabel.snp.remakeConstraints { make in
@@ -172,6 +170,7 @@ class MVBannerCell: UICollectionViewCell {
         }
         BFLog(message: "videoData?.title is \(String(describing: videoData?.title))")
         titleLabel.text = videoData?.title ?? ""
+   
 
         
         if videoData?.categoryImage != nil {
@@ -212,10 +211,12 @@ class MVBannerCell: UICollectionViewCell {
             make.height.equalTo(82)
             make.center.equalToSuperview()
         }
+        
+        
 
         bottmMaskView.snp.remakeConstraints { make in
             make.width.equalToSuperview()
-            make.height.equalTo(150)
+            make.height.equalTo(150 + titleLabel.frame.height)
             make.left.equalToSuperview()
             make.bottom.equalToSuperview()
         }