feedURLContainerView width

This commit is contained in:
nixzhu
2016-01-18 17:25:31 +08:00
parent 0cb4bf2ee6
commit 7103b4aae5
@@ -154,8 +154,9 @@ class ChatLeftTextURLCell: ChatBaseCell {
strongSelf.bubbleTailImageView.center = CGPoint(x: CGRectGetMinX(bubbleBodyFrame), y: CGRectGetMidY(strongSelf.avatarImageView.frame))
let width: CGFloat = Ruler.iPhoneHorizontal(200, 220, 220).value
let feedURLContainerViewFrame = CGRect(x: strongSelf.textContainerView.frame.origin.x, y: CGRectGetMaxY(strongSelf.textContainerView.frame) + 8, width: width, height: 100)
let minWidth: CGFloat = Ruler.iPhoneHorizontal(190, 220, 220).value
let width = max(minWidth, strongSelf.textContainerView.frame.width + 12 * 2 - 1)
let feedURLContainerViewFrame = CGRect(x: strongSelf.textContainerView.frame.origin.x - 12 + 1, y: CGRectGetMaxY(strongSelf.textContainerView.frame) + 8, width: width, height: 100)
strongSelf.feedURLContainerView.frame = feedURLContainerViewFrame
if let openGraphURLInfo = message.openGraphURLInfo {