Browse Source

fix longtext layout: though text content should be inset from the edges, the
scrollbar should abut the edge of the screen.

Michael Kirk 9 months ago
parent
commit
134cade52c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Signal/src/ViewControllers/LongTextViewController.swift

+ 3 - 2
Signal/src/ViewControllers/LongTextViewController.swift

@@ -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)