 
         constraints = [NSLayoutConstraint]()
         dict = ["self": tagBarViewController.view, "super": tagScrollView]
-        constraints.append(NSLayoutConstraint(expressionFormat: "self.width >= \(sizeForTags.width)", parameters: dict))
-        constraints.append(NSLayoutConstraint(expressionFormat: "self.height >= \(sizeForTags.height + (tagBarViewController.configuration.verticalMargin * 2))", parameters: dict))
+        constraints.append(NSLayoutConstraint(expressionFormat: "self.width >= \(round(sizeForTags.width) + (tagBarViewController.configuration.horizontalMargin * 2))", parameters: dict))
+        constraints.append(NSLayoutConstraint(expressionFormat: "self.height >= \(round(sizeForTags.height) + (tagBarViewController.configuration.verticalMargin * 2))", parameters: dict))
         tagScrollView.addConstraints(constraints)
-
 
     }
 

        c.font = UIFont.boldWithSize(13.0)
        c.canBeTurnedOnAndOff = false
        c.margin = UIEdgeInsetsZero
        c.labelInset = UIEdgeInsetsMake(8.0, 8.0, 5.0, 0.0)
        c.buttonInset = UIEdgeInsetsMake(0.0, 8.0, 0.0, 10.0)

        var onState = ButtonStateConfiguration()
        onState.backgroundColor = UIColor.whiteColor()

        c.font = UIFont.boldWithSize(13.0)
        c.canBeTurnedOnAndOff = false
        c.margin = UIEdgeInsetsZero
        c.labelInset = UIEdgeInsets(top: 6.5, left: 8.0, bottom: 6.5, right: 0.0)
        c.buttonInset = UIEdgeInsets(top: 0.0, left: 8.0, bottom: 0.0, right: 10.0)
        c.isTappable = true

        var onState = ButtonStateConfiguration()
