Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 6b42450

Browse files
BrianLitwinrnystrom
authored andcommitted
lines up contextMenu labels (#2082)
1 parent 6e1b004 commit 6b42450

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Classes/View Controllers/ContrastContextMenu.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ final class ContrastContextMenu: UITableViewController {
5555
border = contentView.addBorder(.top)
5656
border?.backgroundColor = Styles.Colors.Gray.medium.color
5757
}
58+
59+
override func layoutSubviews() {
60+
super.layoutSubviews()
61+
guard let frame = textLabel?.frame, imageView != nil else { return }
62+
textLabel?.frame = CGRect(x: 55,
63+
y: frame.minY,
64+
width: frame.width,
65+
height: frame.height
66+
)
67+
}
5868

5969
required init?(coder aDecoder: NSCoder) {
6070
fatalError("init(coder:) has not been implemented")

0 commit comments

Comments
 (0)