         
         let (height1, height2) = elementsHeights()
         if let h = height1, let v = itemsAlertList?.view {
-            Layout.set(height: 200, view: v)
+            Layout.set(height: h, view: v)
         }
         if let h = height2, let v = actionsAlertList?.view {
             Layout.set(height: h, view: v)

    let stackView: UIStackView
    let scrollView = UIScrollView()
    
    init(views: [(UIView, UIEdgeInsets)], width: CGFloat) {

        stackView = UIStackView(arrangedSubviews: views.map { $0.0 } )

            return (max2 / 2, max2 / 2)
        }
    }
}

class Layout {
