Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

updateContentSize #3347

Open
almas123 opened this issue Mar 6, 2019 · 1 comment
Open

updateContentSize #3347

almas123 opened this issue Mar 6, 2019 · 1 comment

Comments

@almas123
Copy link

almas123 commented Mar 6, 2019

Hello, can i update content size of ASTableNode? my code
2019-03-06 21 11 55
in the cell
self.textMessageNode.maximumNumberOfLines = 1 setNeedsLayout() setNeedsDisplay()
in the controller ` @objc func reloadData(){
self.messengerView.layoutSubviews()
self.messengerView.messengerNode.waitUntilAllUpdatesAreProcessed()
self.messengerView.messengerNode.setNeedsDisplay()
self.messengerView.messengerNode.reloadData()
self.messengerView.messengerNode.layoutIfNeeded()
// self.messengerView.table

    self.messengerView.messengerNode.automaticallyAdjustsContentOffset = true
    
    
}` 
@ay8s
Copy link
Contributor

ay8s commented Mar 13, 2019

@almas123 AsyncDisplayKit is now Texture over at https://github.com/TextureGroup/Texture

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants