CR: assign gutter trailing/leading in HeaderView

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent fef6c64bdc
commit f33e5c019c

@ -151,8 +151,8 @@ NS_ASSUME_NONNULL_BEGIN
[self.contentView addSubview:self.headerView]; [self.contentView addSubview:self.headerView];
[self.viewConstraints addObjectsFromArray:@[ [self.viewConstraints addObjectsFromArray:@[
[self.headerView autoSetDimension:ALDimensionHeight toSize:headerHeight], [self.headerView autoSetDimension:ALDimensionHeight toSize:headerHeight],
[self.headerView autoPinLeadingToSuperviewMarginWithInset:self.conversationStyle.headerGutterLeading], [self.headerView autoPinEdgeToSuperviewEdge:ALEdgeLeading],
[self.headerView autoPinTrailingToSuperviewMarginWithInset:self.conversationStyle.headerGutterTrailing], [self.headerView autoPinEdgeToSuperviewEdge:ALEdgeTrailing],
[self.headerView autoPinEdgeToSuperviewEdge:ALEdgeTop], [self.headerView autoPinEdgeToSuperviewEdge:ALEdgeTop],
[self.messageBubbleView autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:self.headerView], [self.messageBubbleView autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:self.headerView],
]]; ]];

@ -93,8 +93,8 @@ const CGFloat OWSMessageHeaderViewDateHeaderVMargin = 23;
[self.strokeView autoSetDimension:ALDimensionHeight toSize:strokeThickness], [self.strokeView autoSetDimension:ALDimensionHeight toSize:strokeThickness],
[self.stackView autoPinEdgeToSuperviewEdge:ALEdgeTop], [self.stackView autoPinEdgeToSuperviewEdge:ALEdgeTop],
[self.stackView autoPinEdgeToSuperviewEdge:ALEdgeLeading], [self.stackView autoPinEdgeToSuperviewEdge:ALEdgeLeading withInset:conversationStyle.headerGutterLeading],
[self.stackView autoPinEdgeToSuperviewEdge:ALEdgeTrailing], [self.stackView autoPinEdgeToSuperviewEdge:ALEdgeTrailing withInset:conversationStyle.headerGutterTrailing]
]; ];
} }

Loading…
Cancel
Save