Skip to content

Commit

Permalink
[MBL-1682] Late Pledge UI ScrollView Not Scrolling (#2149)
Browse files Browse the repository at this point in the history
* make sure the rootstack view has proper constraints

* update snapshots
  • Loading branch information
scottkicks authored Sep 6, 2024
1 parent 0b0c46b commit 8677f52
Show file tree
Hide file tree
Showing 22 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ final class NoShippingPostCampaignCheckoutViewController: UIViewController,
self.view.addSubview(self.rootScrollView)
self.view.addSubview(self.pledgeCTAContainerView)

self.rootScrollView.addSubview(self.rootStackView)
_ = (self.rootStackView, self.rootScrollView)
|> ksr_addSubviewToParent()
|> ksr_constrainViewToEdgesInParent()

// Configure root stack view.
self.rootStackView.addArrangedSubview(self.rootInsetStackView)

// Configure inset views.
let arrangedInsetSubviews = [
self.titleLabel,
self.paymentMethodsViewController.view,
self.pledgeDisclaimerView
]
.flatMap { $0 }
.compactMap { $0 }
.compact()

arrangedInsetSubviews.forEach { view in
Expand Down Expand Up @@ -184,6 +184,11 @@ final class NoShippingPostCampaignCheckoutViewController: UIViewController,

self.rootStackView.axis = NSLayoutConstraint.Axis.vertical
self.rootStackView.spacing = Styles.grid(1)
self.rootStackView.isLayoutMarginsRelativeArrangement = true
self.rootStackView.layoutMargins = UIEdgeInsets(
topBottom: ConfirmDetailsLayout.Margin.topBottom,
leftRight: 0
)

rootInsetStackViewStyle(self.rootInsetStackView)
rootInsetStackViewStyle(self.estimatedShippingStackView)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8677f52

Please sign in to comment.