1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

search for texts

This commit is contained in:
Laserlicht
2024-10-01 21:19:42 +02:00
parent e85e938865
commit 07aa7bac3c
4 changed files with 22 additions and 17 deletions

View File

@ -185,6 +185,9 @@ void CListBox::scrollTo(size_t which)
//scroll down
else if (first + items.size() <= which && which < totalSize)
moveToPos(which - items.size() + 1);
if(slider)
slider->scrollTo(which);
}
void CListBox::moveToPos(size_t which)