Commit 4276e665 authored by Alex朱枝文's avatar Alex朱枝文

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

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