소스 검색

added constraints to container

nayooti 5 년 전
부모
커밋
6215084dd4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      deltachat-ios/View/ChatTitleView.swift

+ 2 - 1
deltachat-ios/View/ChatTitleView.swift

@@ -9,7 +9,6 @@ class ChatTitleView: UIView {
         titleLabel.backgroundColor = UIColor.clear
         titleLabel.font = UIFont.systemFont(ofSize: 16, weight: .semibold)
         titleLabel.textAlignment = .center
-        titleLabel.adjustsFontSizeToFitWidth = true
         return titleLabel
     }()
 
@@ -42,6 +41,8 @@ class ChatTitleView: UIView {
         addConstraints([ containerView.constraintAlignTopTo(self),
                          containerView.constraintAlignBottomTo(self),
                          containerView.constraintCenterXTo(self),
+                         containerView.constraintAlignLeadingTo(self),
+                         containerView.constraintAlignTrailingTo(self)
         ])
 
         containerView.addSubview(titleLabel)