Commit c930132e authored by Steven杜宇's avatar Steven杜宇

// AI

parent 7fb9b20c
......@@ -427,7 +427,7 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
return resultHeight
}
return UITableView.automaticDimension
return 0.0
}
......
......@@ -524,7 +524,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
label.text = message.body.contentText
let maxWidth = KScreenWidth-20*2-16*2 // 最大宽度限制
let size = label.sizeThatFits(CGSize(width: maxWidth, height: .greatestFiniteMagnitude))
var textHeight = ceil(size.height)
let textHeight = ceil(size.height)
return textHeight+10.0*3.0
}
......@@ -577,7 +577,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
return resultHeight
}
return UITableView.automaticDimension
return 0.0
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
......
......@@ -158,11 +158,11 @@ class YHAIChatBannerView: UIView {
bgCardView.snp.makeConstraints { make in
make.left.right.bottom.equalTo(bgImgV)
make.top.equalTo(33.0/242.0 * bgImgHeight)
make.top.equalTo(bgImgV).offset(33.0/242.0 * bgImgHeight)
}
bgImgV.snp.makeConstraints { make in
make.top.equalTo(0)
make.top.equalTo(10)
make.left.equalTo(20)
make.right.equalTo(-20)
make.height.equalTo(bgImgHeight)
......@@ -200,7 +200,6 @@ class YHAIChatBannerView: UIView {
make.right.equalTo(0)
make.height.equalTo(33.0*2+10.0 + 10.0*2.0)
make.top.equalTo(bgImgV.snp.bottom).offset(6)
make.bottom.equalTo(-6)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment