1
This commit is contained in:
@@ -83,7 +83,8 @@
|
||||
[self.voiceButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.contentView).offset(16);
|
||||
make.top.equalTo(self.contentView).offset(8);
|
||||
make.width.height.mas_equalTo(24);
|
||||
// make.width.height.mas_equalTo(24);
|
||||
make.width.height.mas_equalTo(0);
|
||||
}];
|
||||
|
||||
[self.durationLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -105,8 +106,8 @@
|
||||
|
||||
// 关键修复:messageLabel 约束必须完整,让 AutoLayout 能推导出 bubbleView 的高度
|
||||
[self.messageLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(self.bubbleView).offset(10);
|
||||
make.bottom.equalTo(self.bubbleView).offset(-10).priority(999); // 降低优先级
|
||||
make.top.equalTo(self.bubbleView).offset(5);
|
||||
make.bottom.equalTo(self.bubbleView).offset(-5).priority(999); // 降低优先级
|
||||
make.left.equalTo(self.bubbleView).offset(12);
|
||||
make.right.equalTo(self.bubbleView).offset(-12);
|
||||
// 关键修复:给 messageLabel 一个最小高度,防止高度为 0
|
||||
|
||||
Reference in New Issue
Block a user