diff --git a/ios/chrome/browser/ui/payments/payment_request_view_controller.mm b/ios/chrome/browser/ui/payments/payment_request_view_controller.mm index 7938259fb31f..d162644dfec3 100644 --- a/ios/chrome/browser/ui/payments/payment_request_view_controller.mm +++ b/ios/chrome/browser/ui/payments/payment_request_view_controller.mm @@ -35,9 +35,9 @@ namespace { const CGFloat kFooterCellHorizontalPadding = 16; - const CGFloat kButtonEdgeInset = 9; const CGFloat kSeparatorEdgeInset = 14; +const CGFloat kSummaryPageInfoRowHeight = 55; typedef NS_ENUM(NSInteger, SectionIdentifier) { SectionIdentifierSummary = kSectionIdentifierEnumZero, @@ -398,6 +398,13 @@ - (CGFloat)collectionView:(UICollectionView*)collectionView CollectionViewItem* item = [self.collectionViewModel itemAtIndexPath:indexPath]; + // TODO(crbug.com/879588): Remove this when/if cr_preferredHeightForWidth + // works on the next iOS 12 releases. + if (@available(iOS 12, *)) { + if (item.type == ItemTypeSummaryPageInfo) + return kSummaryPageInfoRowHeight; + } + UIEdgeInsets inset = [self collectionView:collectionView layout:collectionView.collectionViewLayout insetForSectionAtIndex:indexPath.section];