Merge branch 'bugfix/update_after_load_image' into feature/standardlistitemwithimage

This commit is contained in:
Kevin G Christiano 2019-07-23 11:58:54 -04:00
commit c9c3ef1ade

View File

@ -110,8 +110,9 @@ open class MoleculeListTemplate: ThreeLayerTableViewController {
open override func moleculeLayoutUpdated(_ molecule: UIView & MVMCoreUIMoleculeViewProtocol) {
if let tableView = tableView {
let point = molecule.convert(molecule.bounds.origin, to: tableView)
if let indexPath = tableView.indexPathForRow(at: point) {
tableView.reloadRows(at: [indexPath], with: .automatic)
if let indexPath = tableView.indexPathForRow(at: point), tableView.indexPathsForVisibleRows?.contains(indexPath) ?? false {
tableView.beginUpdates()
tableView.endUpdates()
}
}
}