             attribute:NSLayoutAttribute.Left,
             multiplier:1,
             constant:0)
+        layoutBorderHeight = NSLayoutConstraint(
+            item:border,
+            attribute:NSLayoutAttribute.Height,
+            relatedBy:NSLayoutRelation.Equal,
+            toItem:nil,
+            attribute:NSLayoutAttribute.NotAnAttribute,
+            multiplier:1,
+            constant:0)
         
         addConstraint(layoutImageLeft)
+        addConstraint(layoutBorderHeight)
         
         NSNotificationCenter.defaultCenter().addObserver(
             self,

    weak var imageView:UIImageView!
    weak var layoutHeight:NSLayoutConstraint!
    weak var layoutImageLeft:NSLayoutConstraint!
    let maxHeight:CGFloat
    let kMinHeight:CGFloat = 3
    private let kMaxHeightPercent:CGFloat = 0.8

            metrics:metrics,
            views:views))
        addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(
            "V:|-0-[border]-0-[imageView]-0-|",
            options:[],
            metrics:metrics,
            views:views))
        addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(
            "V:|-0-[button]-0-|",
            options:[],
            metrics:metrics,
            views:views))
