             buttons.append(button)
         }
 
+        xPos = max((superview?.frame.size.width ?? 0)+1, xPos)
         contentSize = CGSize(width: xPos, height: 44)
     }
 


private extension OLScrollingNavBar {
    func updateItems() {
        var xPos: CGFloat = 0

        for (_, item) in barItems.enumerated() {

    override var frame: CGRect {
        didSet {
            guard let size = superview?.frame.size else { return }
            dump(superview?.frame.size.width)
            super.frame = CGRect(x: 0, y: 0, width: size.width, height: size.height)
            self.updateItems()
        }
    }

