mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
fix timestamp label origin
This commit is contained in:
@@ -357,7 +357,7 @@ open class MessageContentCell: MessageCollectionViewCell {
|
||||
/// - attributes: The `MessagesCollectionViewLayoutAttributes` for the cell.
|
||||
open func layoutTimeLabelView(with attributes: MessagesCollectionViewLayoutAttributes) {
|
||||
let paddingLeft: CGFloat = 10
|
||||
let origin = CGPoint(x: contentView.frame.size.width + paddingLeft, y: contentView.frame.size.height * 0.5)
|
||||
let origin = CGPoint(x: UIScreen.main.bounds.width + paddingLeft, y: contentView.frame.size.height * 0.5)
|
||||
let size = CGSize(width: attributes.messageTimeLabelSize.width, height: attributes.messageTimeLabelSize.height)
|
||||
messageTimestampLabel.frame = CGRect(origin: origin, size: size)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user