         var constraints: [NSLayoutConstraint] = []
         var height = self.controlHeight
         if view == self.titleView {
-            height = self.titleHeight
+            height = Int(self.titleView!.frame.size.height)
+            if height < self.minTitleHeight { height = self.minTitleHeight }
         }
         if let sibling = sibling {
             constraints.appendContentsOf(NSLayoutConstraint.constraintsWithVisualFormat("V:[view(height)]-spacing-[sibling]",

            self.view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-margin-[groupView]-margin-|",
                options: .DirectionLeadingToTrailing,
                metrics: ["margin": self.horizontalMargin],
                views: ["groupView": groupView]) 
            )
        }


    @IBInspectable public var controlHeight: Int        = 50 {
        didSet { self.updateUI() }
    }
    @IBInspectable public var minTitleHeight: Int       = 50 {
        didSet { self.updateUI() }
    }
    @IBInspectable public var spacing: Int              = 4  {
