Fix: title shifts to the right when ETH price refreshes in import screen, and ticket sell flow

pull/334/head
Hwee-Boon Yar 7 years ago
parent d5108e93cc
commit a8b808c57f
  1. 3
      Trust/Redeem/Views/TicketsViewControllerTitleHeader.swift
  2. 3
      Trust/Sell/ViewControllers/EnterSellTicketsPriceQuantityViewController.swift

@ -40,7 +40,6 @@ class TicketsViewControllerTitleHeader: UIView {
}
func configure(title: String) {
frame = CGRect(x: 0, y: 0, width: 300, height: 90)
backgroundColor = Colors.appWhite
titleLabel.textColor = Colors.appText
@ -48,4 +47,4 @@ class TicketsViewControllerTitleHeader: UIView {
titleLabel.adjustsFontSizeToFitWidth = true
titleLabel.text = title
}
}
}

@ -148,9 +148,6 @@ class EnterSellTicketsPriceQuantityViewController: UIViewController {
NSLayoutConstraint.activate([
header.heightAnchor.constraint(equalToConstant: 90),
//Strange repositioning of header horizontally while typing without this
header.leadingAnchor.constraint(equalTo: stackView.leadingAnchor),
header.trailingAnchor.constraint(equalTo: stackView.trailingAnchor),
quantityStepper.heightAnchor.constraint(equalToConstant: 50),

Loading…
Cancel
Save