mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-29 04:24:58 +08:00
lines up contextMenu labels (#2082)
This commit is contained in:
committed by
Ryan Nystrom
parent
6e1b004372
commit
6b42450c51
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user