     open var minTabItemWidth : CGFloat = 100 {
         didSet {
             if let constraint = minViewWidthConstraint {
-                constraint.constant = self.minTabItemWidth
+                constraint.constant = self.minViewWidth
                 self.needsLayout = true
             }
         }

    }
    
    private func createLYTabItemView(_ item : NSTabViewItem) -> LYTabItemView {
        let tabView = LYTabItemView(tabViewItem: item)
        tabView.tabBarView = self
        tabView.translatesAutoresizingMaskIntoConstraints = false
        return tabView
    }
    
    private func itemViewForItem(_ item: NSTabViewItem) -> LYTabItemView? {


    func adjustPackedItem() {
        if needPackItem() {
            if self.tabItemViews().count > 1 {
                packedTabButton.isHidden = false
                packLastTab()
            }
        } else if hasPackedTabViewItems && !needPackItem(addtion: 1) {
            popFirstPackedItem()
        }
