@@ -23,10 +23,10 @@ class IMUIRedPacketMessageCell: IMUIBaseMessageCell {
2323 contentLable. textColor = UIColor . white
2424 contentLable. font = UIFont . systemFont ( ofSize: ( screenW * 15 / 375 ) )
2525 tipsLabel. textColor = UIColor . white
26- tipsLabel. font = UIFont . systemFont ( ofSize: ( screenW * 12 / 375 ) )
26+ tipsLabel. font = UIFont . systemFont ( ofSize: ( screenW * 13 / 375 ) )
2727 tipsLabel. text = " 领取红包 "
2828 titleLable. textColor = UIColor . gray
29- titleLable. font = UIFont . systemFont ( ofSize: ( screenW * 12 / 375 ) )
29+ titleLable. font = UIFont . systemFont ( ofSize: ( screenW * 13 / 375 ) )
3030 titleLable. text = " 红包 "
3131 titleLable. textAlignment = NSTextAlignment . center
3232
@@ -58,10 +58,10 @@ class IMUIRedPacketMessageCell: IMUIBaseMessageCell {
5858 let contentH = layout. bubbleFrame. size. height * 0.74
5959 let titleLableH = layout. bubbleFrame. size. height * 0.26
6060 let tmpSize = self . heightWithFont ( font: UIFont . systemFont ( ofSize: ( screenW * 16 / 375 ) ) , fixedWidth: contentW, text: " 恭喜发财 " )
61- let tipsSize = self . heightWithFont ( font: UIFont . systemFont ( ofSize: ( screenW * 12 / 375 ) ) , fixedWidth: contentW, text: " 领取红包 " )
62- let contentY = ( contentH - tmpSize. height - tipsSize. height - 5 ) * 0.5
61+ let tipsSize = self . heightWithFont ( font: UIFont . systemFont ( ofSize: ( screenW * 13 / 375 ) ) , fixedWidth: contentW, text: " 领取红包 " )
62+ let contentY = ( contentH - tmpSize. height - tipsSize. height - 3 ) * 0.5
6363 contentLable. frame = CGRect ( origin: CGPoint ( x: contentX, y: contentY) , size: CGSize ( width: contentW, height: tmpSize. height) )
64- let tipsY = contentY + tipsSize . height + 5
64+ let tipsY = contentY + tmpSize . height + 3
6565 tipsLabel. frame = CGRect ( origin: CGPoint ( x: contentX, y: tipsY) , size: CGSize ( width: contentW, height: tipsSize. height) )
6666 let titleX = layout. bubbleFrame. size. width * 0.067
6767 let titleW = layout. bubbleFrame. size. width * 0.143
0 commit comments