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

// 修复咨询显示问题

parent 07ee5d51
......@@ -150,7 +150,7 @@ extension YHHomeInformationViewController : CollectionViewWaterfallLayoutDelegat
return 0.0
}
var row = self.sectionItems.count/3
if row%3 != 0 {
if self.sectionItems.count%3 != 0 {
row = row + 1
}
let listHeight = Float(Double(row) * kHomeItemHeight)
......
......@@ -20,7 +20,7 @@ class YHHomeInfoSectionHeadView: UICollectionReusableView {
didSet {
self.collectView.reloadData()
var row = items.count/3
if row%3 != 0 {
if items.count%3 != 0 {
row = row + 1
}
let totalHeight = Double(row) * kHomeItemHeight
......
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