|
@@ -52,12 +52,12 @@ class EditExpressAddressTableViewCell: UITableViewCell {
|
|
|
private func setupLayouts() {
|
|
|
titleLabel.snp.remakeConstraints { (make) in
|
|
|
make.left.equalTo(14)
|
|
|
- make.center.equalTo(editTextView)
|
|
|
+ make.top.equalToSuperview().offset(15)
|
|
|
}
|
|
|
editTextView.snp.remakeConstraints { (make) in
|
|
|
- make.top.equalToSuperview().priority(999)
|
|
|
+ make.top.equalToSuperview().offset(15)
|
|
|
make.height.greaterThanOrEqualTo(48).priority(888)
|
|
|
- make.bottom.equalToSuperview().priority(777)
|
|
|
+ make.bottom.equalToSuperview().offset(-15).priority(777)
|
|
|
make.left.equalTo(94)
|
|
|
make.right.equalTo(-14)
|
|
|
}
|
|
@@ -81,6 +81,8 @@ class EditExpressAddressTableViewCell: UITableViewCell {
|
|
|
editTextView.font = kRegularFont16
|
|
|
editTextView.tintColor = kEnabledButtonColor
|
|
|
editTextView.isScrollEnabled = false
|
|
|
+ editTextView.textContainer.lineFragmentPadding = 0
|
|
|
+ editTextView.textContainerInset = .zero
|
|
|
editTextView.rx.text.orEmpty.changed.subscribe(onNext: {
|
|
|
[weak self] (text) in
|
|
|
self?.editTextView.text = String(text.prefix(150)) as String
|