chang to just use a different point

This commit is contained in:
Pfeil, Scott Robert 2021-07-16 18:12:04 -04:00
parent ccf583615e
commit bcf810d5cb

View File

@ -185,8 +185,7 @@ open class MoleculeListTemplate: ThreeLayerTableViewController, TemplateProtocol
open override func moleculeLayoutUpdated(_ molecule: MoleculeViewProtocol) {
guard let tableView = tableView else { return }
var point = molecule.convert(molecule.bounds.origin, to: tableView)
point = CGPoint(x: ceil(point.x), y: ceil(point.y))
let point = molecule.convert(molecule.center, to: tableView)
if let indexPath = tableView.indexPathForRow(at: point), tableView.indexPathsForVisibleRows?.contains(indexPath) ?? false {
performTableViewUpdates()
}