                 layoutBorderHeight.constant = newBorderHeight
             }
             
-            UIView.animate(withDuration:kAnimationDuration)
+            UIView.animate(withDuration:kAnimationDuration, animations:
             { [weak self] in
                 
                 self?.superview?.layoutIfNeeded()
+            })
+            { [weak self] (done) in
+                
+                if self != nil
+                {
+                    if newHeight == self!.maxHeight
+                    {
+                        self!.controller.viewChat.conversation.scrollToBottom()
+                    }
+                }
             }
         }
     }

        if imageView.image == nil
        {
            newHeight = kMinHeight
            newBorderHeight = kBorderHeight
        }
        else
        {

        let border:UIView = UIView()
        border.isUserInteractionEnabled = false
        border.translatesAutoresizingMaskIntoConstraints = false
        border.backgroundColor = UIColor.black
        
        let imageView:UIImageView = UIImageView()
        imageView.contentMode = controller.model.displayOption.contentMode
