From cf9eb8dbd7f1cd0125cd01b74351068dafaf9398 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 16 Sep 2010 23:58:52 -0700 Subject: Reset scroll position on search in contacts/groups lists --- linden/indra/newview/llfloaterfriends.cpp | 1 + linden/indra/newview/llfloatergroups.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/linden/indra/newview/llfloaterfriends.cpp b/linden/indra/newview/llfloaterfriends.cpp index 479da89..a151a33 100644 --- a/linden/indra/newview/llfloaterfriends.cpp +++ b/linden/indra/newview/llfloaterfriends.cpp @@ -217,6 +217,7 @@ void LLPanelFriends::filterContacts(const std::string& search_string) } } } + mFriendsList->setScrollPos(0); refreshUI(); } diff --git a/linden/indra/newview/llfloatergroups.cpp b/linden/indra/newview/llfloatergroups.cpp index b3fbb1b..c89e066 100644 --- a/linden/indra/newview/llfloatergroups.cpp +++ b/linden/indra/newview/llfloatergroups.cpp @@ -649,6 +649,7 @@ void LLPanelGroups::filterContacts(const std::string& search_string) group_list->deleteItems((*itr)->getValue()); } } + group_list->setScrollPos(0); enableButtons(); } } -- cgit v1.1