     @IBOutlet weak var containerViewHeight: NSLayoutConstraint!
     @IBOutlet weak var calendarButton: UIButton!
     @IBOutlet weak var infoImage: UIImageView!
+    @IBOutlet weak var buttomDivider: UIView!
     
     var appointment: POSAppointment = POSAppointment()
     

        
        var heightAdjustment = label.frame.height
        if UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad {
            heightAdjustment -= 20  
        }
        
        return heightAdjustment
    }
    

        
        let calendarButtonTitle = NSLocalizedString("metadata add to calendar", comment:"Legg til i kalender")
        view.calendarButton.setTitle(calendarButtonTitle, for: UIControlState.normal)
        var infoTextHeight = CGFloat(0)        
        if appointment.infoText1.length > 1 {
            view.infoTitle1.text = appointment.infoTitle1
            view.infoText1.text = appointment.infoText1
            infoTextHeight += positiveHeightAdjustment(text: appointment.infoTitle1, width: view.infoTitle1.frame.width)
            infoTextHeight += positiveHeightAdjustment(text: appointment.infoText1, width: view.infoText1.frame.width)
            infoTextHeight += 100 //spaceBetweenDividerAndfirstInfoTitle
            view.infoImage.isHidden = false
            view.buttomDivider.isHidden = false
        }else{
            view.infoImage.isHidden = true
            view.buttomDivider.isHidden = true
        }
        
        if appointment.infoText2.length > 1 {
            view.infoTitle2.text = appointment.infoTitle2
            view.infoText2.text = appointment.infoText2
            infoTextHeight += positiveHeightAdjustment(text: appointment.infoTitle2, width: view.infoTitle2.frame.width)
            infoTextHeight += positiveHeightAdjustment(text: appointment.infoText2, width: view.infoText2.frame.width)
            infoTextHeight += 80 //spaceBetweenDividerAndfirstInfoTitle
        }
        let subtitleHeight = positiveHeightAdjustment(text: appointment.subTitle, width: view.subTitle.frame.width)
        if subtitleHeight > 18 {
