Programatically moving items giving wrong transforms #980
-
I have a sortable tree I based off the tree example, but the user can also use buttons to move items up or down in the list. When doing this, it seems that the Is there a way to fix the transform or is this a bug? I inspected the animations and confirmed that the item is getting multiples of the height with each click of the "Move down" button. Screen.Recording.2022-12-22.at.1.22.48.AM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I figured something out. I needed to manually schedule a remeasure whenever the items changed. I'm controlling the items externally, so the items prop changes whenever the buttons are clicked.
|
Beta Was this translation helpful? Give feedback.
I figured something out. I needed to manually schedule a remeasure whenever the items changed. I'm controlling the items externally, so the items prop changes whenever the buttons are clicked.