-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automaticallyAdjustsContentOffset does not work anymore #23
Comments
it looks like there is no progress in this concern. Do you have it on your radar, oder is there an easy workaround? thx |
am I the only one who uses 'automaticallyAdjustsContentOffset'? It is still not working in 2.3.3. Any comments on that, or am I doing something completely wrong? thx |
Same here, automaticallyAdjustsContentOffset is not working anymore. |
I believe it stopped working with #317. By the time the content offset adjustment is applied, the visible nodes are still not updated ( I believe this is also (vaguely) related with the discussion about visibility on #788. |
Any news on this issue? |
Any update? |
If someone finds this issue and is still seeing that deleting rows doesn't work with this, I've found a few things after this change set had been merged. When deleting items from a ASTableNode, the internal https://github.com/TextureGroup/Texture/blob/master/Source/Private/_ASHierarchyChangeSet.h#L108 The key issue that causes is that Texture will not work like UIKit's UITableView when the changes are animated. It just gives up on adjusting the content inset. https://github.com/TextureGroup/Texture/blob/master/Source/ASTableView.mm#L874 In my opinion, this issue is still valid since an For the animation always set to true issue, I noticed that by simply just calling
|
Thanks @made2k. Was looking through some older issues and saw it had a merge associated. |
No problem, and thanks for opening it again! I should also have noted in that first one if someone finds this, once that If that workaround doesn't work, there's still the ability to calculate your own adjusted offset based on the index paths that are being deleted (just grab the rect for row for each index that's above the user's current first visible index) and apply the sum of those heights to the current offset. However, with this approach the animation is a bit jumpy. Hopefully that helps someone a little bit. |
For example:
I think the reason you have to do this is that |
I have to insert multiple rows in my ASTableNode on index position 0 without animation and maintaining the users' visible scroll position.
In the latest AsyncDisplayKit (2.2.1) it is working perfectly when using
In Texture (2.3) I have following bugs
The text was updated successfully, but these errors were encountered: