         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() {

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

    init(height: CGFloat, color: UIColor) {
        contentHeight = height
        view.backgroundColor = color
        view.translatesAutoresizingMaskIntoConstraints = false
    }
}

