         stackView.spacing = 0
         
         stackView.translatesAutoresizingMaskIntoConstraints = false
+        scrollView.translatesAutoresizingMaskIntoConstraints = false
+        
         scrollView.addSubview(stackView)
-        
         Layout.setEqual(view:scrollView, subview: stackView, margins: false)
         Layout.set(width: width, view: stackView)
         
-        contentHeight = stackView.bounds.height
+        contentHeight = stackView.systemLayoutSizeFitting(UILayoutFittingCompressedSize).height
     }
 
     func stat() {

        
        if let topSubview = itemsAlertList?.view ?? actionsAlertList?.view {
            view.addSubview(topSubview)
            topSubview.translatesAutoresizingMaskIntoConstraints = false
            
            Layout.setEqualTop(view: view, subview: topSubview, margins: true)
            Layout.setEqualLeftAndRight(view: view, subview: topSubview, margins: true)
            
            if let bottomSubview = actionsAlertList?.view, bottomSubview !== topSubview {
                view.addSubview(separatorView)
                separatorView.translatesAutoresizingMaskIntoConstraints = false

                Layout.setBottomToTop(topView: topSubview, bottomView: separatorView)
                Layout.setEqualLeftAndRight(view: view, subview: separatorView, margins: true)
                Layout.set(height: separatorHeight, view: separatorView)

                view.addSubview(bottomSubview)
                bottomSubview.translatesAutoresizingMaskIntoConstraints = false

                Layout.setBottomToTop(topView: separatorView, bottomView: bottomSubview)
                Layout.setEqualLeftAndRight(view: view, subview: bottomSubview, margins: true)

    var separatorView: UIView = {
        let view = UIView()
        view.backgroundColor = UIColor.yellow
        view.translatesAutoresizingMaskIntoConstraints = false
        return view
    }()
    
