fix longtext layout: though text content should be inset from the edges, the

scrollbar should abut the edge of the screen.
This commit is contained in:
Michael Kirk 2019-03-15 16:25:14 -07:00
parent ca0a555f8e
commit 134cade52c

View file

@ -153,8 +153,9 @@ public class LongTextViewController: OWSViewController {
view.addSubview(messageTextView)
messageTextView.autoPinEdge(toSuperviewEdge: .top)
messageTextView.autoPinEdge(toSuperviewMargin: .leading)
messageTextView.autoPinEdge(toSuperviewMargin: .trailing)
messageTextView.autoPinEdge(toSuperviewEdge: .leading)
messageTextView.autoPinEdge(toSuperviewEdge: .trailing)
messageTextView.textContainerInset = UIEdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16)
let footer = UIToolbar()
view.addSubview(footer)