File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
102102 [_detailBtn mas_makeConstraints: ^(MASConstraintMaker *make) {
103103 make.size .mas_equalTo (CGSizeMake (60 , 30 ));
104104 make.right .equalTo (_contentBGView).offset (-10 );
105- make.bottom .equalTo (_contentBGView). offset (- 5 );
105+ make.centerY .equalTo (_timeLabel );
106106 }];
107107 }
108108
@@ -141,6 +141,7 @@ - (void)setCurComment:(ProjectLineNote *)curComment{
141141 }
142142 curBottomY += [DynamicCommentCell imageCollectionViewHeightWithCount: imagesCount];
143143 [_timeLabel setY: curBottomY];
144+ _timeLabel.width = _detailBtn.hidden ? kTaskCommentCell_ContentWidth : kTaskCommentCell_ContentWidth - 60 ;
144145 _timeLabel.text = [NSString stringWithFormat: @" %@ 发布于 %@ " , _curComment.author.name,[_curComment.created_at stringDisplay_HHmm ]];
145146}
146147
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ - (void)setCurItem:(ProjectLineNote *)curItem{
117117 curBottomY += [MRPRCommentCell imageCollectionViewHeightWithCount: imagesCount];
118118
119119 [_timeLabel setY: curBottomY];
120+ _timeLabel.width = _detailBtn.hidden ? kScreen_Width - 40 - 2 *kPaddingLeftWidth : kScreen_Width - 40 - 2 *kPaddingLeftWidth - 60 ;
120121 _timeLabel.text = [NSString stringWithFormat: @" %@ %@ " , _curItem.author.name, [_curItem.created_at stringDisplay_HHmm ]];
121122}
122123
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
103103 [_detailBtn mas_makeConstraints: ^(MASConstraintMaker *make) {
104104 make.size .mas_equalTo (CGSizeMake (60 , 30 ));
105105 make.right .equalTo (_contentBGView).offset (-10 );
106- make.bottom .equalTo (_contentBGView). offset (- 5 );
106+ make.centerY .equalTo (_timeLabel );
107107 }];
108108 }
109109 }
@@ -147,6 +147,7 @@ - (void)setCurComment:(TaskComment *)curComment{
147147 curBottomY += [TaskCommentCell imageCollectionViewHeightWithCount: imagesCount];
148148
149149 [_timeLabel setY: curBottomY];
150+ _timeLabel.width = _detailBtn.hidden ? kTaskCommentCell_ContentWidth : kTaskCommentCell_ContentWidth - 60 ;
150151 _timeLabel.text = [NSString stringWithFormat: @" %@ 发布于 %@ " , _curComment.owner.name, [_curComment.created_at stringDisplay_HHmm ]];
151152}
152153
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ - (void)setToComment:(ProjectTopic *)toComment{
178178 curBottomY += [TopicCommentCell imageCollectionViewHeightWithCount: imagesCount];
179179
180180 [_timeLabel setY: curBottomY];
181+ _timeLabel.width = _detailBtn.hidden ? kScreen_Width - 40 - 2 *kPaddingLeftWidth : kScreen_Width - 40 - 2 *kPaddingLeftWidth - 60 ;
181182 _timeLabel.text = [NSString stringWithFormat: @" %@ 发布于 %@ " , _toComment.owner.name, [_toComment.created_at stringDisplay_HHmm ]];
182183}
183184
You can’t perform that action at this time.
0 commit comments