Reset Scroll Bar positioning when searching via Textfield

This commit is contained in:
Kam committed 2024-03-29 04:50:47 -04:00
1 parent 44f91da175
commit 5a7bd08403
11 files changed
+47 -31

No files matched your search

@@ -139,6 +139,7 @@ public class GuiSoundSelection extends SubGuiInterface implements ICustomScrollL
return;
catSearch = getTextField(55).getText().toLowerCase();
scrollCategories.setList(getCatSearch());
scrollCategories.resetScroll();
}
}
if(getTextField(66) != null){
@@ -147,6 +148,7 @@ public class GuiSoundSelection extends SubGuiInterface implements ICustomScrollL
return;
soundSearch = getTextField(66).getText().toLowerCase();
scrollSounds.setList(getSoundSearch());
scrollSounds.resetScroll();
}
}
}