             layout.delegate = self
             layoutContainer.addSubview(layout)
             layout.autoPinEdgesToSuperviewEdges()
-            
-            layout.layoutIfNeeded()
-            self.bottomMarginConstraint?.constant = requiresHeightConstraint ? CGFloat(layout.height!) : layout.bounds.size.height
         }
     }
     

            
            if animated { // animate in
                if !self.isAnimating {
                    
                    self.layoutIfNeeded()
                    self.bottomMarginConstraint?.constant = 0.0

                                populate: CocoaBarPopulationClosure?,
                                completion: CocoaBarAnimationCompletionClosure?) {
        if !self.isShowing {
            
            // update layout
            self.setUpIfRequired()
            self.bringBarToFront()
            if let layout = layout {
