     // Used to temporarily store the cloned button so we can respond to layout changes during animation
     private weak var clonedTabsButton: InsetButton?
 
+    private var rightBarConstraint: Constraint?
+    private let defaultRightOffset: CGFloat = URLBarViewUX.URLBarCurveOffset - URLBarViewUX.URLBarCurveBounceBuffer
+
     var isEditing: Bool {
         return locationView.active
     }

        CGContextSaveGState(context)
        CGContextClearRect(context, rect)
        CGContextSetFillColorWithColor(context, URLBarViewUX.backgroundColorWithAlpha(1).CGColor)
        self.getPath().fill()
        CGContextDrawPath(context, kCGPathFill)
        CGContextRestoreGState(context)
    }


        tabsButton.titleLabel?.snp_makeConstraints { make in
            make.size.equalTo(URLBarViewUX.TabsButtonHeight)
        }

        curveShape.snp_makeConstraints { make in
            make.top.left.bottom.equalTo(self)
            self.rightBarConstraint = make.right.equalTo(self).constraint
            self.rightBarConstraint?.updateOffset(defaultRightOffset)
        }
    }

