Просмотр исходного кода

make AvatarSelectionCell self-sizing

cyberta 5 лет назад
Родитель
Сommit
a1d3c1504b
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      deltachat-ios/View/AvatarSelectionCell.swift

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

@@ -56,12 +56,13 @@ class AvatarSelectionCell: UITableViewCell {
         contentView.addSubview(badge)
         badge.alignTrailingToAnchor(contentView.layoutMarginsGuide.trailingAnchor)
         badge.alignTopToAnchor(contentView.layoutMarginsGuide.topAnchor)
+        badge.alignBottomToAnchor(contentView.layoutMarginsGuide.bottomAnchor)
 
         contentView.addSubview(hintLabel)
         hintLabel.alignLeadingToAnchor(contentView.layoutMarginsGuide.leadingAnchor)
         hintLabel.alignTopToAnchor(contentView.layoutMarginsGuide.topAnchor)
         hintLabel.alignTrailingToAnchor(badge.leadingAnchor)
-        hintLabel.alignBottomToAnchor(contentView.layoutMarginsGuide.bottomAnchor)
+        hintLabel.alignBottomToAnchor(contentView.layoutMarginsGuide.bottomAnchor, priority: .defaultLow)
 
         let touchListener = UILongPressGestureRecognizer(target: self, action: #selector(onBadgeTouched))
         touchListener.minimumPressDuration = 0