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


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

    }
    
    private func createLYTabItemView(_ item : NSTabViewItem) -> LYTabItemView {
        let tabItemView = LYTabItemView(tabViewItem: item)
        tabItemView.tabBarView = self
        tabItemView.translatesAutoresizingMaskIntoConstraints = false
        tabItemView.setContentCompressionResistancePriority(NSLayoutPriorityDefaultLow, for: .horizontal)
        return tabItemView
    }
    
    private func itemViewForItem(_ item: NSTabViewItem) -> LYTabItemView? {
