Skip to content

Commit

Permalink
Bugfix FXIOS-7531 [v120] Fakespot CFR's "Try review checker" link doe…
Browse files Browse the repository at this point in the history
…sn't work for toolbar on bottom (#16764)
  • Loading branch information
PARAIPAN9 authored Oct 10, 2023
1 parent 9bbbc24 commit 8f25db5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ public class ContextualHintView: UIView, ThemeApplicable {
static let descriptionTextSize: CGFloat = 17
static let stackViewLeading: CGFloat = 16
static let stackViewTopArrowTopConstraint: CGFloat = 16
static let stackViewTopArrowBottomConstraint: CGFloat = 10
static let stackViewBottomArrowTopConstraint: CGFloat = 5
static let stackViewBottomArrowBottomConstraint: CGFloat = 21
static let stackViewTrailing: CGFloat = 3
static let heightSpacing: CGFloat = UX.stackViewTopArrowTopConstraint + UX.stackViewBottomArrowTopConstraint
}
Expand Down Expand Up @@ -100,7 +98,6 @@ public class ContextualHintView: UIView, ThemeApplicable {
private func setupConstraints() {
let isArrowUp = viewModel.arrowDirection == .up
let topPadding = isArrowUp ? UX.stackViewTopArrowTopConstraint : UX.stackViewBottomArrowTopConstraint
let bottomPadding = isArrowUp ? UX.stackViewTopArrowBottomConstraint : UX.stackViewBottomArrowBottomConstraint
let closeButtonPadding = isArrowUp ? UX.closeButtonTop : UX.closeButtonBottom

NSLayoutConstraint.activate([
Expand Down Expand Up @@ -128,7 +125,7 @@ public class ContextualHintView: UIView, ThemeApplicable {
constant: UX.stackViewLeading),
stackView.trailingAnchor.constraint(equalTo: contentContainer.trailingAnchor,
constant: -UX.closeButtonSize.width - UX.stackViewTrailing),
stackView.bottomAnchor.constraint(equalTo: contentContainer.bottomAnchor, constant: bottomPadding),
stackView.bottomAnchor.constraint(equalTo: contentContainer.bottomAnchor)
])

setNeedsLayout()
Expand Down

0 comments on commit 8f25db5

Please sign in to comment.