lines up contextMenu labels (#2082)

This commit is contained in:
BrianLitwin
2018-08-10 18:02:50 -04:00
committed by Ryan Nystrom
parent 6e1b004372
commit 6b42450c51

View File

@@ -55,6 +55,16 @@ final class ContrastContextMenu: UITableViewController {
border = contentView.addBorder(.top)
border?.backgroundColor = Styles.Colors.Gray.medium.color
}
override func layoutSubviews() {
super.layoutSubviews()
guard let frame = textLabel?.frame, imageView != nil else { return }
textLabel?.frame = CGRect(x: 55,
y: frame.minY,
width: frame.width,
height: frame.height
)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")