chang to just use a different point
This commit is contained in:
parent
ccf583615e
commit
bcf810d5cb
@ -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()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user