         self.current?.remove()
         let view = presenter.view
         view.applyAll(withStyle: self.lock.style)
-        self.anchorConstraint = view.layout(inView: self.scrollView, below: self.headerView)
+        self.anchorConstraint = view.layout(inView: self.scrollContentView, below: self.headerView)
         presenter.messagePresenter = self.messagePresenter
         self.current = view
         self.headerView.title = title

        scrollView.translatesAutoresizingMaskIntoConstraints = false
        self.scrollView = scrollView

        let header = HeaderView()
        self.scrollView.addSubview(header)
        constraintEqual(anchor: header.leftAnchor, toAnchor: scrollView.leftAnchor)
        constraintEqual(anchor: header.topAnchor, toAnchor: scrollView.topAnchor)
        constraintEqual(anchor: header.rightAnchor, toAnchor: scrollView.rightAnchor)
        constraintEqual(anchor: header.widthAnchor, toAnchor: scrollView.widthAnchor)
        header.translatesAutoresizingMaskIntoConstraints = false

        header.showClose = self.lock.options.closable

    weak var headerView: HeaderView!
    weak var scrollView: UIScrollView!
    weak var messageView: MessageView?
    weak var scrollContentView: UIView!
    var current: View?
    var keyboard: Bool = false
    var routes: Routes = Routes()
