         let views:[String:UIView] = [
             "spinner":spinner]
         
-        let metrics:[String:CGFloat] = [:]
+        let metrics:[String:CGFloat] = [
+            "barHeight":barHeight]
         
         addConstraints(NSLayoutConstraint.constraints(
             withVisualFormat:"H:|-0-[spinner]-0-|",

        clipsToBounds = true
        self.controller = controller
        
        let spinner:VSpinner = VSpinner()
        self.spinner = spinner
        

            metrics:metrics,
            views:views))
        addConstraints(NSLayoutConstraint.constraints(
            withVisualFormat:"V:|-(barHeight)-[spinner]-0-|",
            options:[],
            metrics:metrics,
            views:views))
