babylonhealth / Bento

Swift library for building component-based interfaces on top of UITableView and UICollectionView 🍱
MIT License
374 stars 11 forks source link

Fix rendering issue with `PreSizingLayoutPassRequiring` #171

Closed mluisbrown closed 5 years ago

mluisbrown commented 5 years ago

Only set the bounds.size.width from the target size, which is all that is needed to calculate the cell height. Fixes #170

Setting the bounds.size (including the height) resets the height of the cell leading to the cell being always rendered first with zero height, and then the correct height.