Adapt conversation settings view to RTL.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent d4e62efce5
commit 8005cf0227

@ -581,15 +581,15 @@ NS_ASSUME_NONNULL_BEGIN
_avatarView = avatarView; _avatarView = avatarView;
[threadInfoView addSubview:avatarView]; [threadInfoView addSubview:avatarView];
[avatarView autoVCenterInSuperview]; [avatarView autoVCenterInSuperview];
[avatarView autoPinEdgeToSuperviewEdge:ALEdgeLeft]; [avatarView autoPinLeadingToSuperView];
[avatarView autoSetDimension:ALDimensionWidth toSize:kAvatarSize]; [avatarView autoSetDimension:ALDimensionWidth toSize:kAvatarSize];
[avatarView autoSetDimension:ALDimensionHeight toSize:kAvatarSize]; [avatarView autoSetDimension:ALDimensionHeight toSize:kAvatarSize];
UIView *threadNameView = [UIView new]; UIView *threadNameView = [UIView containerView];
[threadInfoView addSubview:threadNameView]; [threadInfoView addSubview:threadNameView];
[threadNameView autoVCenterInSuperview]; [threadNameView autoVCenterInSuperview];
[threadNameView autoPinEdge:ALEdgeLeft toEdge:ALEdgeRight ofView:avatarView withOffset:16.f]; [threadNameView autoPinTrailingToSuperView];
[threadNameView autoPinEdgeToSuperviewEdge:ALEdgeRight withInset:16.f]; [threadNameView autoPinLeadingToTrailingOfView:avatarView margin:16.f];
UILabel *threadTitleLabel = [UILabel new]; UILabel *threadTitleLabel = [UILabel new];
threadTitleLabel.text = self.threadName; threadTitleLabel.text = self.threadName;
@ -613,7 +613,7 @@ NS_ASSUME_NONNULL_BEGIN
subtitleLabel.lineBreakMode = NSLineBreakByTruncatingTail; subtitleLabel.lineBreakMode = NSLineBreakByTruncatingTail;
[threadNameView addSubview:subtitleLabel]; [threadNameView addSubview:subtitleLabel];
[subtitleLabel autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:lastTitleView]; [subtitleLabel autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:lastTitleView];
[subtitleLabel autoPinEdgeToSuperviewEdge:ALEdgeLeft]; [subtitleLabel autoPinLeadingToSuperView];
lastTitleView = subtitleLabel; lastTitleView = subtitleLabel;
}; };

Loading…
Cancel
Save