mattcolman / phaser-list-view

List view class for Phaser. Great for high scoreboards.
http://mattcolman.com/labs/phaser-list-view/index.html
MIT License
116 stars 21 forks source link

added update item positions method for the case of removing item. #31

Closed dirablue closed 2 years ago

dirablue commented 5 years ago

when I remove item with "remove" method, list item's position was not changed. to solve this issue, I added the new method to update items position.

I didn't add this method inside "remove" method in case of the unexpected implementation,

how to use

  1. remove an item from a list
  2. call "updateItemsPosition" method to update positions of all items