Skip to content

Commit 9d5dc7a

Browse files
authored
Revert "Calculate scroll view frame correctly (#72)"
This reverts commit 5d30ee4.
1 parent e29a5ee commit 9d5dc7a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

MessageViewController/MessageViewController.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ open class MessageViewController: UIViewController, MessageAutocompleteControlle
126126
// required for the nested UITextView to layout its internals correctly
127127
messageView.layoutIfNeeded()
128128

129-
let frame = scrollView.frame
130129
scrollView.frame = CGRect(
131-
x: frame.minX,
132-
y: frame.minY,
133-
width: frame.width,
134-
height: messageViewFrame.minY - frame.minY
130+
x: bounds.minX,
131+
y: bounds.minY,
132+
width: bounds.width,
133+
height: messageViewFrame.minY
135134
)
136135

137136
messageAutocompleteController.layout(in: view, bottomY: messageViewFrame.minY)

0 commit comments

Comments
 (0)