Commit 545bf9783d7c45cde95410524a1097061bf17f99

Authored by zhangxiaowen
1 parent 35a505ac

no message

CNLiveSettingModule/Classes/FontSIze/CNLiveMessageContentButton.m
... ... @@ -48,11 +48,11 @@
48 48 if ([message.fromMe isEqualToString:@"1"]){
49 49 // 是我的消息
50 50 self.content.textColor = [UIColor whiteColor];
51   - self.content.frame = CGRectMake(ChatContentRight, ChatContentTop, self.frame.size.width-ChatContentLeft-ChatContentRight, self.frame.size.height-2*ChatContentTop);
  51 + self.content.frame = CGRectMake(ChatContentRight, 0, self.frame.size.width-ChatContentLeft-ChatContentRight, self.frame.size.height);
52 52 }
53 53 else {
54 54 // 不是我的消息
55   - self.content.frame = CGRectMake(ChatContentLeft, ChatContentTop, self.frame.size.width-ChatContentLeft-ChatContentRight, self.frame.size.height-2*ChatContentTop);
  55 + self.content.frame = CGRectMake(ChatContentLeft, 0, self.frame.size.width-ChatContentLeft-ChatContentRight, self.frame.size.height);
56 56  
57 57 }
58 58  
... ...
CNLiveSettingModule/Classes/FontSIze/CNLiveMessageFrame.h
... ... @@ -9,8 +9,8 @@
9 9 #define ChatIconWH 45 //头像宽高height、width
10 10  
11 11 #define ChatLineSpacing 3
12   -#define ChatContentTop 8 //文本内容与按钮上边缘间隔
13   -#define ChatContentLeft 15 //文本内容与按钮左边缘间隔
  12 +#define ChatContentTop 18 //文本内容与按钮上边缘间隔
  13 +#define ChatContentLeft 16 //文本内容与按钮左边缘间隔
14 14 #define ChatContentBottom 8 //文本内容与按钮下边缘间隔
15 15 #define ChatContentRight 10 //文本内容与按钮右边缘间隔
16 16  
... ...