     ///
     open var trailingItem: UIButton? = nil {
         didSet {
+            updateScrollViewInsets()
+
             trailingItemContainer.arrangedSubviews.forEach({ $0.removeFromSuperview() })
 
             if let item = trailingItem {

            populateItems()

            let overflowVisible = UserDefaults.standard.bool(forKey: Constants.overflowExpandedUserDefaultsKey)
            setOverflowItemsVisible(overflowVisible, animated: false)
            
            if overflowVisible {
                rotateOverflowToggleItem(.vertical, animated: false)

        return frame.width - scrollView.contentInset.left - scrollView.contentInset.right
    }

    fileprivate var trailingInset: CGFloat {
        if let trailingItem = trailingItem {
            trailingItem.sizeToFit()
            return trailingItem.bounds.size.width + Constants.trailingButtonMargin
        } else {
            return Constants.stackButtonWidth
        }
    }

    /// Returns true if any of the overflow items in the bar are currently hidden
    ///
