                 if let view = ChatMessageVideoView.instantiateFromNib() {
                     view.attachment = attachment
                     view.delegate = delegate
+                    view.translatesAutoresizingMaskIntoConstraints = false
 
                     mediaViews.addArrangedSubview(view)
                     mediaViewHeight += ChatMessageVideoView.defaultHeight

                if let view = ChatMessageTextView.instantiateFromNib() {
                    view.attachment = attachment
                    view.delegate = delegate

                    mediaViews.addArrangedSubview(view)
                    mediaViewHeight += ChatMessageTextView.heightFor(attachment)

                if let view = ChatMessageImageView.instantiateFromNib() {
                    view.attachment = attachment
                    view.delegate = delegate
                    view.translatesAutoresizingMaskIntoConstraints = false

                    mediaViews.addArrangedSubview(view)
                    mediaViewHeight += ChatMessageImageView.defaultHeight
