loottrackerpanel: use setComponentZOrder instead of remove+add
This commit is contained in:
@@ -503,13 +503,7 @@ class LootTrackerPanel extends PluginPanel
|
||||
if (box.matches(record))
|
||||
{
|
||||
// float the matched box to the top of the UI list if it's not already first
|
||||
int idx = logsContainer.getComponentZOrder(box);
|
||||
if (idx > 0)
|
||||
{
|
||||
logsContainer.remove(idx);
|
||||
logsContainer.add(box, 0);
|
||||
}
|
||||
|
||||
logsContainer.setComponentZOrder(box, 0);
|
||||
box.addKill(record);
|
||||
return box;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user