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

@@ -102,6 +102,7 @@ public class GuiDialogSelection extends SubGuiInterface implements ICustomScroll
return;
catSearch = getTextField(33).getText().toLowerCase();
scrollCategories.setList(getCatSearch());
scrollCategories.resetScroll();
}
}
if(getTextField(44) != null){
@@ -110,6 +111,7 @@ public class GuiDialogSelection extends SubGuiInterface implements ICustomScroll
return;
dialogSearch = getTextField(44).getText().toLowerCase();
scrollDialogs.setList(getDialogSearch());
scrollDialogs.resetScroll();
}
}
}