With just this code, when I click on one of the items/buttons the size of that button changes, but none of the other items move, so it overlaps them. I can adjust the click handler to include the following:
It will adjust the locations of all of the other items, but it also recalculates the item list, and the item that was clicked (and the size was adjusted for) jumps to a new location.
Any suggestions of how to get the benefits of the virtual scroll, along with the ability to click and resize a single item in the list without having its location jump?
Hello, I had the same requirement and managed to realize it.
It seems the interface of ion-virtual-scroll has changed since you tried it, I’m on Ionic 4 RC.0 and didn’t find the methods you used.
However, I used the following method to just redraw the resized item when the user taps on it.
The item will be highlighted and expanded to show some details about it.