Skip to content

Commit 157e3a6

Browse files
author
Giorgio Ruscigno
committed
Update MigrationStepView, adjust scroll view content insets to prevent content being hidden behind the buttons
1 parent 27230f3 commit 157e3a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WordPress/Jetpack/Classes/ViewRelated/WordPress-to-Jetpack Migration/Common/Views/MigrationStepView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ class MigrationStepView: UIView {
6060
fatalError("init(coder:) has not been implemented")
6161
}
6262

63+
override func layoutSubviews() {
64+
super.layoutSubviews()
65+
mainScrollView.contentInset.bottom = actionsView.frame.size.height + Constants.bottomMargin
66+
}
67+
6368
private enum Constants {
6469
static let contentMargins = UIEdgeInsets(top: 0, left: 30, bottom: 0, right: 30)
6570
static let stackViewSpacing: CGFloat = 20
71+
static let bottomMargin: CGFloat = 20
6672
}
6773
}

0 commit comments

Comments
 (0)