         scrollView.contentInset = sanitizedContentInset
         scrollView.contentOffset.x -= sanitizedContentInset.left
         
-        layoutGrid.horizontalSpacing = max(contentInset.left, contentInset.right)
         rootContainerTop.constant = contentInset.top
         rootContainerBottom.constant = contentInset.bottom
     }

        
        // Set up grid - stack views that content views are added to.
        self.layoutGrid = TMBarViewLayoutGrid(with: layout.view)
        scrollView.addSubview(layoutGrid)
        layoutGrid.translatesAutoresizingMaskIntoConstraints = false
        NSLayoutConstraint.activate([

            scrollViewContainer.showFade = newValue
        } get {
            return scrollViewContainer.showFade
        }
    }
    /// Spacing between components in the bar, such as between the layout and accessory views.
    ///
    /// Defaults to `8.0`.
    public var spacing: CGFloat {
        set {
            layoutGrid.horizontalSpacing = newValue
        } get {
            return layoutGrid.horizontalSpacing
        }
    }
    
