From bcf810d5cb6e4b3dc3e73858206bc62892da3435 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Fri, 16 Jul 2021 18:12:04 -0400 Subject: [PATCH] chang to just use a different point --- MVMCoreUI/Atomic/Templates/MoleculeListTemplate.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Templates/MoleculeListTemplate.swift b/MVMCoreUI/Atomic/Templates/MoleculeListTemplate.swift index 32c4f1f2..a1c2d3b6 100644 --- a/MVMCoreUI/Atomic/Templates/MoleculeListTemplate.swift +++ b/MVMCoreUI/Atomic/Templates/MoleculeListTemplate.swift @@ -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() }