Changeset 3798
- Timestamp:
- 07/28/08 01:04:58 (1 month ago)
- Files:
-
- trunk/Mobile/Views/CQConnectionTableCell.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Mobile/Views/CQConnectionTableCell.m
r3796 r3798 192 192 frame.size = [_iconImageView sizeThatFits:_iconImageView.bounds.size]; 193 193 frame.origin.x = ICON_LEFT_MARGIN; 194 frame.origin.y = (contentRect.size.height / 2.) - (frame.size.height / 2.);194 frame.origin.y = round((contentRect.size.height / 2.) - (frame.size.height / 2.)); 195 195 _iconImageView.frame = frame; 196 196 … … 203 203 frame = _timeLabel.frame; 204 204 frame.size = [_timeLabel sizeThatFits:_timeLabel.bounds.size]; 205 frame.origin.y = (contentRect.size.height / 2.) - (frame.size.height / 2.);205 frame.origin.y = round((contentRect.size.height / 2.) - (frame.size.height / 2.)); 206 206 207 207 if( self.editing ) … … 215 215 frame.size = [_serverLabel sizeThatFits:_serverLabel.bounds.size]; 216 216 frame.origin.x = CGRectGetMaxX(_iconImageView.frame) + ICON_RIGHT_MARGIN; 217 frame.origin.y = (contentRect.size.height / 2.) - frame.size.height + 3.;217 frame.origin.y = round((contentRect.size.height / 2.) - frame.size.height + 3.); 218 218 frame.size.width = _timeLabel.frame.origin.x - frame.origin.x - TEXT_RIGHT_MARGIN; 219 219 _serverLabel.frame = frame; … … 222 222 frame.size = [_nicknameLabel sizeThatFits:_nicknameLabel.bounds.size]; 223 223 frame.origin.x = CGRectGetMaxX(_iconImageView.frame) + ICON_RIGHT_MARGIN; 224 frame.origin.y = (contentRect.size.height / 2.);224 frame.origin.y = round(contentRect.size.height / 2.); 225 225 frame.size.width = _timeLabel.frame.origin.x - frame.origin.x - TEXT_RIGHT_MARGIN; 226 226 _nicknameLabel.frame = frame;
