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