oulaoups / controlp5

Automatically exported from code.google.com/p/controlp5
0 stars 0 forks source link

calling scrollList's removeItem once removes 2 buttons instead of just 1 #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create scrollList and add at least 2 buttons with unique names
2. remove the first item you added
3. both buttons are removed

What is the expected output? What do you see instead?
only one button should be removed. the button you want to get rid of is removed 
as well as the button listed below it.

What version of the product are you using? On what operating system?
v0.5.0 on Windows 7

Please provide any additional information below.
I believe you are calling the remove function twice in your source code for 
ScrollList.java:
controllers.get(i).remove();
controllers.remove(controllers.get(i));

Original issue reported on code.google.com by tma...@gmail.com on 10 Oct 2010 at 8:25

GoogleCodeExporter commented 9 years ago
ScrollList has been deprecated, please use ListBox

Original comment by soj...@gmail.com on 13 Nov 2010 at 5:04