         if edges.contains(.Left) || edges.contains(.All) {
             let left = border()
             addSubview(left)
-            NSLayoutConstraint.constraintsWithVisualFormat("H:|-(0)-[left(==thickness)]",
+            NSLayoutConstraint.constraintsWithVisualFormat("H:|-paddingLeft-[left(==thickness)]",
                 options: [],
-                metrics: ["thickness": thickness],
+                metrics: metrics,
                 views: ["left": left]).activate()
-            NSLayoutConstraint.constraintsWithVisualFormat("V:|-(0)-[left]-(0)-|",
+            NSLayoutConstraint.constraintsWithVisualFormat("V:|-paddingTop-[left]-paddingBottom-|",
                 options: [],
-                metrics: nil,
+                metrics: metrics,
                 views: ["left": left]).activate()
             borders.append(left)
         }

        if edges.contains(.Right) || edges.contains(.All) {
            let right = border()
            addSubview(right)
            NSLayoutConstraint.constraintsWithVisualFormat("H:[right(==thickness)]-(0)-|",
                options: [],
                metrics: ["thickness": thickness],
                views: ["right": right]).activate()
            NSLayoutConstraint.constraintsWithVisualFormat("V:|-(0)-[right]-(0)-|",
                options: [],
                metrics: nil,
                views: ["right": right]).activate()
            borders.append(right)
        }

        if edges.contains(.Bottom) || edges.contains(.All) {
            let bottom = border()
            addSubview(bottom)
            NSLayoutConstraint.constraintsWithVisualFormat("V:[bottom(==thickness)]-paddingBottom-|",
                options: [],
                metrics: metrics,
                views: ["bottom": bottom]).activate()
            NSLayoutConstraint.constraintsWithVisualFormat("H:|-paddingLeft-[bottom]-paddingRight-|",
                options: [],
                metrics: metrics,
                views: ["bottom": bottom]).activate()
            borders.append(bottom)
        }
