                 Layout.setEqualBottom(view: view, subview: topSubview, margins: true)
             }
         }
-        
-        (itemsAlertList as! ACStackAlertListView).stat()
-    }
-    
-    override func viewWillLayoutSubviews() {
-        super.viewWillLayoutSubviews()
-        (itemsAlertList as! ACStackAlertListView).stat()
     }
     
     var hasItems: Bool { return items.count > 0 }
     var hasActions: Bool { return actions.count > 0 }
+    var maxViewHeight: CGFloat { return UIScreen.main.bounds.height - 80 }
     
     func elementsHeights() -> (itemsHeight: CGFloat?, actionsHeight: CGFloat?) {
-        let max = maxViewHeight() - viewMargins.topPlusBottom
+        let max = maxViewHeight - viewMargins.topPlusBottom
         
         switch (itemsAlertList?.contentHeight, actionsAlertList?.contentHeight) {
         case (nil, nil):

            return (max2 / 2, max2 / 2)
        }
    }
    
    func maxViewHeight() -> CGFloat {
        return UIScreen.main.bounds.height - 80
    }
}

class Layout {

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