Procházet zdrojové kódy

make AvatarSelectionCell self-sizing

cyberta před 5 roky
rodič
revize
a1d3c1504b
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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