Commit 691a6f3aa4903a981c910540d9bb5117983509b4

Authored by zhangxiaowen
1 parent 9c03e307

no message

CNLiveScioLive/Pages/Home/外宣要闻/View/CNLiveNewsLeftPicTableViewCell.m
... ... @@ -96,7 +96,7 @@
96 96  
97 97 if ([_model.type isEqualToString:@"program"]) {
98 98 _playImage.hidden = NO;
99   - _playImage.frame = CGRectMake(10+5+((80*MainScale)*16.0/9.0-30*MainScale)/2.0, (self.contentView.height-30*MainScale)/2.0, 30*MainScale, 30*MainScale);
  99 +// _playImage.frame = CGRectMake(10+5+((80*MainScale)*16.0/9.0-30*MainScale)/2.0, (self.contentView.height-30*MainScale)/2.0, 30*MainScale, 30*MainScale);
100 100  
101 101 }
102 102 else if ([_model.type isEqualToString:@"subject"]) {
... ... @@ -126,6 +126,12 @@
126 126 make.height.offset(80*MainScale);
127 127  
128 128 }];
  129 + [_playImage mas_updateConstraints:^(MASConstraintMaker *make) {
  130 + make.centerX.equalTo(self->_picImage.mas_centerX).with.offset(0);
  131 + make.centerY.equalTo(self->_picImage.mas_centerY).with.offset(0);
  132 + make.width.height.offset(30*MainScale);
  133 +
  134 + }];
129 135  
130 136 [_titleLabel mas_updateConstraints:^(MASConstraintMaker *make) {
131 137 make.left.equalTo(self->_picImage.mas_right).with.offset(5);
... ...