Skip to content

Commit

Permalink
Merge pull request #37 from nghialv/feature/hotfix
Browse files Browse the repository at this point in the history
Cache calculatedHeight
  • Loading branch information
nghialv committed Apr 4, 2016
2 parents 4021495 + 8b2ab03 commit dda569a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Hakuba/CellModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ private extension CellModel {
cell.layoutIfNeeded()

let size = cell.contentView.systemLayoutSizeFittingSize(UILayoutFittingCompressedSize)
return size.height + 1
let height = size.height + 1
calculatedHeight = height

return height
}
}

0 comments on commit dda569a

Please sign in to comment.