Explorar el Código

fix button width constraints in editing bar

cyberta hace 4 años
padre
commit
c1f4767298
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      deltachat-ios/Chat/Views/ChatEditingBar.swift

+ 1 - 5
deltachat-ios/Chat/Views/ChatEditingBar.swift

@@ -65,10 +65,9 @@ public class ChatEditingBar: UIView, InputItem {
     private lazy var mainContentView: UIStackView = {
         let view = UIStackView(arrangedSubviews: [deleteButton, forwardButton, cancelButton])
         view.axis = .horizontal
-        view.distribution = .equalSpacing
+        view.distribution = .fillEqually
         view.alignment = .center
         view.translatesAutoresizingMaskIntoConstraints = false
-        view.spacing = 16
         return view
     }()
 
@@ -96,11 +95,8 @@ public class ChatEditingBar: UIView, InputItem {
             mainContentView.constraintAlignLeadingTo(self),
             mainContentView.constraintAlignTrailingTo(self),
             deleteButton.constraintHeightTo(36),
-            deleteButton.constraintWidthTo(36),
             forwardButton.constraintHeightTo(36),
-            forwardButton.constraintWidthTo(36),
             cancelButton.constraintHeightTo(36),
-            cancelButton.constraintWidthTo(36)
         ])
 
         backgroundColor = DcColors.chatBackgroundColor